27 references to OpenDocumentAsync
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (27)
Completion\CompletionTests.cs (6)
862await testLspServer.OpenDocumentAsync(caretLocation.Uri); 928await testLspServer.OpenDocumentAsync(caretLocation.Uri); 994await testLspServer.OpenDocumentAsync(caretLocation.Uri); 1089await testLspServer.OpenDocumentAsync(firstCaret.Uri); 1212await testLspServer.OpenDocumentAsync(firstCaretLocation.Uri); 1338await testLspServer.OpenDocumentAsync(caretLocation.Uri);
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
213private protected static Task OpenDocumentAsync(TestLspServer testLspServer, Document document) => testLspServer.OpenDocumentAsync(document.GetURI());
Diagnostics\PullDiagnosticTests.cs (5)
550await testLspServer.OpenDocumentAsync(csproj1Document.GetURI()); 551await testLspServer.OpenDocumentAsync(csproj2Document.GetURI()); 596await testLspServer.OpenDocumentAsync(csproj1Document.GetURI()); 597await testLspServer.OpenDocumentAsync(csproj2Document.GetURI()); 1678await testLspServer.OpenDocumentAsync(uri);
DocumentChanges\DocumentChangesTests.cs (1)
332private static Task DidOpen(TestLspServer testLspServer, Uri uri) => testLspServer.OpenDocumentAsync(uri);
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (6)
43await testLspServer.OpenDocumentAsync(looseFileUri, source).ConfigureAwait(false); 71await testLspServer.OpenDocumentAsync(looseFileUri, string.Empty).ConfigureAwait(false); 99await testLspServer.OpenDocumentAsync(looseFileUri, source).ConfigureAwait(false); 124await testLspServer.OpenDocumentAsync(fileInWorkspaceUri).ConfigureAwait(false); 146await testLspServer.OpenDocumentAsync(looseFileUri, source).ConfigureAwait(false); 193await testLspServer.OpenDocumentAsync(looseFileUri, source).ConfigureAwait(false);
SpellCheck\SpellCheckTests.cs (1)
550=> testLspServer.OpenDocumentAsync(document.GetURI());
Workspaces\LspWorkspaceManagerTests.cs (7)
35await testLspServer.OpenDocumentAsync(documentUri, "LSP text"); 187await testLspServer.OpenDocumentAsync(newDocumentUri); 208await testLspServer.OpenDocumentAsync(newDocumentUri, "LSP text"); 334await testLspServer.OpenDocumentAsync(firstWorkspaceDocumentUri); 389await testLspServer.OpenDocumentAsync(firstWorkspaceDocumentUri); 475await testLspServer.OpenDocumentAsync(documentUri, "Text"); 486await testLspServer.OpenDocumentAsync(documentUri, openText);