20 references to TryGetWorkspace
Microsoft.CodeAnalysis.EditorFeatures (5)
AddImports\AbstractAddImportsPasteCommandHandler.cs (1)
112if (!Workspace.TryGetWorkspace(sourceTextContainer, out var workspace))
Editor\TextEditApplication.cs (1)
34if (Workspace.TryGetWorkspace(oldText.Container, out var workspace))
Shared\Extensions\HostWorkspaceServicesExtensions.cs (1)
41=> Workspace.TryGetWorkspace(buffer.AsTextContainer(), out var workspace) ?
Shared\Extensions\ITextBufferExtensions.cs (1)
28=> Workspace.TryGetWorkspace(buffer.AsTextContainer(), out workspace);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
446if (Workspace.TryGetWorkspace(container, out _))
Microsoft.CodeAnalysis.EditorFeatures.Text (2)
Extensions.cs (2)
54if (Workspace.TryGetWorkspace(container, out var workspace)) 90=> Workspace.TryGetWorkspace(buffer.AsTextContainer(), out var workspace) &&
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\InlineRenameAdornmentManager.cs (1)
184Workspace.TryGetWorkspace(textContainer, out var workspace);
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\TextExtensions.cs (4)
21if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 61if (Workspace.TryGetWorkspace(text.Container, out var workspace)) 108if (Workspace.TryGetWorkspace(container, out var workspace)) 128if (Workspace.TryGetWorkspace(container, out var workspace))
Microsoft.VisualStudio.LanguageServices (8)
Implementation\VisualStudioSupportsFeatureService.cs (2)
56if (Workspace.TryGetWorkspace(sourceTextContainer, out var workspace)) 71if (Workspace.TryGetWorkspace(sourceTextContainer, out var workspace)
Snippets\AbstractSnippetCommandHandler.cs (5)
95if (!Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out _)) 148if (!Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out _)) 181if (!Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out _)) 214if (!Workspace.TryGetWorkspace(args.SubjectBuffer.AsTextContainer(), out _)) 312if (Workspace.TryGetWorkspace(textContainer, out var workspace) && workspace.Kind == WorkspaceKind.Interactive)
Venus\ContainedLanguageCodeSupport.cs (1)
326if (CodeAnalysis.Workspace.TryGetWorkspace(document.GetTextSynchronously(cancellationToken).Container, out var workspace))