Closed wmjordan closed 7 years ago
It appeared that I'd fixed this issue. Please change the last two lines of the InvalidateSpan
method in CBETagger.cs to the following lines. By checking the End
of the span and the Length
of the snapshot, the problem was gone.
if (invalidateSpan.End <= _TextView.TextBuffer.CurrentSnapshot.Length) {
_changedEvent?.Invoke(this, new SnapshotSpanEventArgs(
new SnapshotSpan(_TextView.TextBuffer.CurrentSnapshot, invalidateSpan)));
}
Thank you!
It threw exceptions when I was working in VS 2015 update 3. The stack trace was: