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));
		}
Exemple #2
0
        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));
            }
        }
Exemple #3
0
 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));
		}