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));
		}
Ejemplo n.º 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));
            }
        }
Ejemplo n.º 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));
		}