public LineSeparatorViewTagger(ITextView textView) { if (textView == null) { throw new ArgumentNullException(nameof(textView)); } this.textView = textView; lineSeparatorCollection = LineSeparatorCollection.Empty; textView.Closed += TextView_Closed; }
public void SetLineSeparatorCollection(LineSeparatorCollection coll) { if (textView.IsClosed) { return; } if (coll is null) { coll = LineSeparatorCollection.Empty; } if (lineSeparatorCollection == coll) { return; } lineSeparatorCollection = coll; RefreshAllTags(); }
void TextView_Closed(object sender, EventArgs e) { lineSeparatorCollection = LineSeparatorCollection.Empty; textView.Closed -= TextView_Closed; }