8 references to TryGetTextBuffer
Microsoft.CodeAnalysis.EditorFeatures (3)
PasteTracking\PasteTrackingService.cs (1)
28var textBuffer = sourceTextContainer.TryGetTextBuffer();
RenameTracking\RenameTrackingTaggerProvider.cs (2)
77textBuffer = text.Container.TryGetTextBuffer(); 114var textBuffer = text.Container.TryGetTextBuffer();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.cs (1)
18=> TryGetTextBuffer(textContainer) ?? throw new ArgumentException(TextEditorResources.textContainer_is_not_a_SourceTextContainer_that_was_created_from_an_ITextBuffer, nameof(textContainer));
Microsoft.VisualStudio.LanguageServices (1)
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
75var textBuffer = container.TryGetTextBuffer();
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
483var textBuffer = textContainer.TryGetTextBuffer();
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Venus\ContainedLanguageStaticEventBinding.vb (2)
72Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).Container.TryGetTextBuffer() 100Dim textBuffer = targetDocument.GetTextSynchronously(cancellationToken).Container.TryGetTextBuffer()