22 references to GetLspDocumentInfoAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\RequestContext.cs (1)
265
(workspace, solution, document) = await lspWorkspaceManager.
GetLspDocumentInfoAsync
(textDocument, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (21)
Definitions\GoToTypeDefinitionTests.cs (1)
296
var (lspWorkspace, _, _) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = fileUri }, CancellationToken.None);
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (1)
106
var (_, _, lspDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new TextDocumentIdentifier { DocumentUri = uri }, CancellationToken.None).ConfigureAwait(false);
Metadata\LspMetadataAsSourceWorkspaceTests.cs (1)
122
var (lspWorkspace, _, _) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = fileUri }, CancellationToken.None);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (3)
159
var (miscWorkspace, _, miscDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = looseFileUri }, CancellationToken.None);
320
var (lspWorkspace, _, _) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = fileUri }, CancellationToken.None);
326
var (lspWorkspace, _, _) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = fileUri }, CancellationToken.None).ConfigureAwait(false);
ProtocolConversionsTests.cs (1)
343
var (_, _, textDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new TextDocumentIdentifier { DocumentUri = uri }, CancellationToken.None);
UriTests.cs (13)
53
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = looseFileUri }, CancellationToken.None);
79
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = looseFileUri }, CancellationToken.None);
111
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = expectedDocumentUri }, CancellationToken.None);
122
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = lowercaseUri }, CancellationToken.None);
149
var (workspace, _, fileDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = fileDocumentUri }, CancellationToken.None);
156
var (gitWorkspace, _, gitDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = gitDocumentUri }, CancellationToken.None);
185
var (workspace, _, lspDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = unencodedUri }, CancellationToken.None).ConfigureAwait(false);
200
var (encodedWorkspace, _, encodedDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = encodedUri }, CancellationToken.None).ConfigureAwait(false);
233
var (workspace, _, lspDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = upperCaseUri }, CancellationToken.None).ConfigureAwait(false);
246
var (lowerCaseWorkspace, _, lowerCaseDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = lowerCaseUri }, CancellationToken.None).ConfigureAwait(false);
279
var (workspace, _, lspDocument) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = upperCaseUri }, CancellationToken.None).ConfigureAwait(false);
303
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = looseFileUri }, CancellationToken.None);
351
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(new LSP.TextDocumentIdentifier { DocumentUri = invalidUri }, CancellationToken.None);
Workspaces\LspWorkspaceManagerTests.cs (1)
776
var (workspace, _, document) = await testLspServer.GetManager().
GetLspDocumentInfoAsync
(CreateTextDocumentIdentifier(uri), CancellationToken.None).ConfigureAwait(false);