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