1 write to _textBuffer
Microsoft.VisualStudio.LanguageServices (1)
Workspace\SourceGeneratedFileManager.cs (1)
269_textBuffer = textBuffer;
10 references to _textBuffer
Microsoft.VisualStudio.LanguageServices (10)
Workspace\SourceGeneratedFileManager.cs (10)
275using (var readOnlyRegionEdit = _textBuffer.CreateReadOnlyRegionEdit()) 278_textBuffer.CurrentSnapshot.GetFullSpan(), 303var sourceGeneratedDocument = (SourceGeneratedDocument?)_textBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges(); 318using (var readOnlyRegionEdit = _textBuffer.CreateReadOnlyRegionEdit()) 384if (_fileManager._textDocumentFactoryService.TryGetTextDocument(_textBuffer, out var textDocument)) 395using (var edit = _textBuffer.CreateEdit(EditOptions.DefaultMinimalChange, reiteratedVersionNumber: null, editTag: textDocument)) 398edit.Replace(startPosition: 0, _textBuffer.CurrentSnapshot.Length, generatedSource.ToString()); 405this.Workspace.OnSourceGeneratedDocumentOpened(_textBuffer.AsTextContainer(), generatedDocument); 529var sourceText = _textBuffer.CurrentSnapshot.AsText(); 531_textBuffer, sourceText.GetVsTextSpanForSpan(sourceSpan), cancellationToken);