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)
275
using (var readOnlyRegionEdit =
_textBuffer
.CreateReadOnlyRegionEdit())
278
_textBuffer
.CurrentSnapshot.GetFullSpan(),
303
var sourceGeneratedDocument = (SourceGeneratedDocument?)
_textBuffer
.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();
318
using (var readOnlyRegionEdit =
_textBuffer
.CreateReadOnlyRegionEdit())
384
if (_fileManager._textDocumentFactoryService.TryGetTextDocument(
_textBuffer
, out var textDocument))
395
using (var edit =
_textBuffer
.CreateEdit(EditOptions.DefaultMinimalChange, reiteratedVersionNumber: null, editTag: textDocument))
398
edit.Replace(startPosition: 0,
_textBuffer
.CurrentSnapshot.Length, generatedSource.ToString());
405
this.Workspace.OnSourceGeneratedDocumentOpened(
_textBuffer
.AsTextContainer(), generatedDocument);
529
var sourceText =
_textBuffer
.CurrentSnapshot.AsText();
531
_textBuffer
, sourceText.GetVsTextSpanForSpan(sourceSpan), cancellationToken);