10 references to TryGetWorkspace
Microsoft.CodeAnalysis.EditorFeatures (10)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
50=> subjectBuffer.TryGetWorkspace(out workspace) &&
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
95=> subjectBuffer.TryGetWorkspace(out workspace) &&
ExtractMethod\ExtractMethodCommandHandler.cs (1)
75if (!args.SubjectBuffer.TryGetWorkspace(out var workspace) ||
Formatting\FormatCommandHandler.Paste.cs (1)
54if (!subjectBuffer.TryGetWorkspace(out var workspace) ||
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (2)
56if (!args.SubjectBuffer.TryGetWorkspace(out var workspace)) 131return args.SubjectBuffer.TryGetWorkspace(out var workspace) &&
Organizing\OrganizeDocumentCommandHandler.cs (2)
75if (args.SubjectBuffer.TryGetWorkspace(out var retrievedWorkspace)) 125if (!subjectBuffer.TryGetWorkspace(out var workspace))
Shared\Extensions\ITextBufferExtensions.cs (2)
18if (buffer.TryGetWorkspace(out var workspace)) 57if (buffer.TryGetWorkspace(out var workspace))