public SquiggleQuickInfoSource( SquiggleQuickInfoSourceProvider componentContext, ITextBuffer textBuffer) { this.componentContext = componentContext ?? throw new ArgumentNullException(nameof(componentContext)); this.textBuffer = textBuffer ?? throw new ArgumentNullException(nameof(textBuffer)); }
public void Dispose() { if (this.disposed) { return; } this.disposed = true; Debug.Assert(this.componentContext.JoinableTaskContext.IsOnMainThread); // Get rid of the tag aggregator, if we created it. if (this.tagAggregator != null) { this.tagAggregator.Dispose(); this.tagAggregator = null; this.tagAggregatorTextView = null; } this.componentContext = null; this.textBuffer = null; }