private void OnChanged(TextSnapshot newSnapshot, Span newSpan, Span oldSpan) { var oldSnapshot = _currentSnapshot; _currentSnapshot = newSnapshot; if (Changed != null) Changed(this, new TextChangeArgs(oldSnapshot, oldSpan, newSnapshot, newSpan)); }
private void OnChanged(TextSnapshot newSnapshot, Span newSpan, Span oldSpan) { var oldSnapshot = _currentSnapshot; _currentSnapshot = newSnapshot; if (Changed != null) { Changed(this, new TextChangeArgs(oldSnapshot, oldSpan, newSnapshot, newSpan)); } }
private TextBuffer(IPiece <char> text, IContentType contentType) { ContentType = contentType; _currentSnapshot = new TextSnapshot(this, PieceTable.ForPiece(text)); }
private TextBuffer(IPiece<char> text, IContentType contentType) { ContentType = contentType; _currentSnapshot = new TextSnapshot(this, PieceTable.ForPiece(text)); }