Permalink
Browse files

Merge pull request #32377 from dotnet/merges/dev16.0-preview2-to-master

Merge dev16.0-preview2 to master
  • Loading branch information...
dotnet-automerge-bot committed Jan 11, 2019
2 parents 0f4e365 + 7c7c6f2 commit 3bc2bdea33e1da702a7203afe036d8575e931f89
Showing with 6 additions and 9 deletions.
  1. +6 −9 src/VisualStudio/Core/Def/Implementation/Venus/ContainedLanguage.cs
@@ -212,6 +212,12 @@ private void OnDisconnect()
}

this.ContainedDocument.Dispose();

if (_bufferTagAggregator != null)
{
_bufferTagAggregator.Dispose();
_bufferTagAggregator = null;
}
}

private void OnDataBufferChanged(object sender, TextContentChangedEventArgs e)
@@ -220,14 +226,5 @@ private void OnDataBufferChanged(object sender, TextContentChangedEventArgs e)
// when primary buffer has changed to update diagnostic positions.
_diagnosticAnalyzerService.Reanalyze(this.Workspace, documentIds: SpecializedCollections.SingletonEnumerable(this.ContainedDocument.Id));
}

public void Dispose()
{
if (_bufferTagAggregator != null)
{
_bufferTagAggregator.Dispose();
_bufferTagAggregator = null;
}
}
}
}

0 comments on commit 3bc2bde

Please sign in to comment.