14 references to TryGetTextBuffer
Microsoft.CodeAnalysis.EditorFeatures (3)
PasteTracking\PasteTrackingService.cs (1)
32var textBuffer = sourceTextContainer.TryGetTextBuffer();
RenameTracking\RenameTrackingTaggerProvider.cs (2)
86textBuffer = text.Container.TryGetTextBuffer(); 125var textBuffer = text.Container.TryGetTextBuffer();
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.cs (1)
19=> TryGetTextBuffer(textContainer) ?? throw new ArgumentException(TextEditorResources.textContainer_is_not_a_SourceTextContainer_that_was_created_from_an_ITextBuffer, nameof(textContainer));
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1150var textBuffer = this.CurrentSolution.GetTextDocument(documentId)!.GetTextSynchronously(CancellationToken.None).Container.TryGetTextBuffer();
TableDataSource\AbstractTableEntriesSnapshot.cs (1)
148var textBuffer = text.Container.TryGetTextBuffer();
TableDataSource\Extensions.cs (1)
43var textBuffer = text.Container.TryGetTextBuffer();
Workspace\GlobalUndoServiceFactory.WorkspaceGlobalUndoTransaction.cs (1)
73var textBuffer = container.TryGetTextBuffer();
Workspace\VisualStudioFormattingRuleFactoryServiceFactory.cs (1)
51if (textContainer.TryGetTextBuffer() is not IProjectionBuffer)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\AbstractCodeModelService.cs (1)
82var textBuffer = text.Container.TryGetTextBuffer();
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
501return 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()
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Implementation\XamlProjectService.cs (1)
171if (!hasText || text?.Container.TryGetTextBuffer() == null)