Skip to content

Commit

Permalink
Merge pull request #32384 from dotnet/merges/dev16.0-preview2-to-feat…
Browse files Browse the repository at this point in the history
…ures/enhanced-using

Merge dev16.0-preview2 to features/enhanced-using
  • Loading branch information
dotnet-automerge-bot committed Jan 11, 2019
2 parents f3420ba + 7c7c6f2 commit 7ddf68e
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ private void OnDisconnect()
}

this.ContainedDocument.Dispose();

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

private void OnDataBufferChanged(object sender, TextContentChangedEventArgs e)
Expand All @@ -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 7ddf68e

Please sign in to comment.