103 references to GetURI
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Extensions\ProtocolConversions.cs (3)
184
=> new LSP.TextDocumentIdentifier { Uri = document.
GetURI
() };
187
=> new LSP.VersionedTextDocumentIdentifier { Uri = document.
GetURI
() };
290
uriToTextEdits.Add((oldDocument.
GetURI
(), TextChangeToTextEdit(textChange, oldText)));
Handler\CodeActions\CodeActionResolveHandler.cs (1)
202
var documentIdentifier = new OptionalVersionedTextDocumentIdentifier { Uri = newTextDoc.
GetURI
() };
Handler\Diagnostics\DiagnosticSources\AbstractDocumentDiagnosticSource.cs (1)
26
? new VSTextDocumentIdentifier { ProjectContext = ProtocolConversions.ProjectToProjectContext(Document.Project), Uri = Document.
GetURI
() }
Handler\Diagnostics\DocumentPullDiagnosticHandler.cs (2)
120
if (!context.IsTracking(document.
GetURI
()))
122
context.TraceWarning($"Ignoring diagnostics request for untracked document: {document.
GetURI
()}");
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (2)
124
if (context.IsTracking(document.
GetURI
()))
126
context.TraceInformation($"Skipping tracked document: {document.
GetURI
()}");
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
147
var documentUri = document.
GetURI
();
Handler\SpellCheck\DocumentSpellCheckHandler.cs (2)
55
if (!context.IsTracking(context.Document.
GetURI
()))
57
context.TraceInformation($"Ignoring spell check request for untracked document: {context.Document.
GetURI
()}");
Handler\SpellCheck\WorkspaceSpellCheckHandler.cs (2)
80
if (context.IsTracking(document.
GetURI
()))
82
context.TraceInformation($"Skipping tracked document: {document.
GetURI
()}");
Handler\Symbols\DocumentSymbolsHandler.cs (1)
93
Uri = document.
GetURI
(),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (87)
CodeLens\AbstractCodeLensTests.cs (1)
25
var textDocument = CreateTextDocumentIdentifier(testLspServer.GetCurrentSolution().Projects.Single().Documents.Single().
GetURI
());
Diagnostics\AbstractPullDiagnosticTestsBase.cs (3)
165
private protected static Task CloseDocumentAsync(TestLspServer testLspServer, Document document) => testLspServer.CloseDocumentAsync(document.
GetURI
());
210
await testLspServer.InsertTextAsync(document.
GetURI
(), (lineInfo.Start.Line, lineInfo.Start.Character, text));
213
private protected static Task OpenDocumentAsync(TestLspServer testLspServer, Document document) => testLspServer.OpenDocumentAsync(document.
GetURI
());
Diagnostics\PullDiagnosticTests.cs (44)
46
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
66
testLspServer, document.
GetURI
(), useVSDiagnostics);
88
testLspServer, document.
GetURI
(), useVSDiagnostics: true, category: PullDiagnosticCategories.DocumentCompilerSyntax);
91
testLspServer, document.
GetURI
(), useVSDiagnostics: true, category: PullDiagnosticCategories.DocumentCompilerSemantic);
97
testLspServer, document.
GetURI
(), useVSDiagnostics: true, previousResultId: syntaxResults.Single().ResultId, category: PullDiagnosticCategories.DocumentCompilerSyntax);
99
testLspServer, document.
GetURI
(), useVSDiagnostics: true, previousResultId: semanticResults.Single().ResultId, category: PullDiagnosticCategories.DocumentCompilerSemantic);
125
testLspServer, document.
GetURI
(), useVSDiagnostics: true);
150
testLspServer, document.
GetURI
(), useVSDiagnostics);
173
testLspServer, document.
GetURI
(), useVSDiagnostics, category: PullDiagnosticCategories.Task);
200
await Assert.ThrowsAsync<StreamJsonRpc.RemoteInvocationException>(async () => await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics));
219
await Assert.ThrowsAsync<StreamJsonRpc.RemoteInvocationException>(async () => await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics));
237
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
259
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics).ConfigureAwait(false);
267
results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics, results.Single().ResultId).ConfigureAwait(false);
287
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
293
testLspServer, document.
GetURI
(), useVSDiagnostics, previousResultId: resultId);
314
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
326
testLspServer, document.
GetURI
(), useVSDiagnostics, previousResultId: resultId);
347
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
352
results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics, results.Single().ResultId);
369
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics);
377
testLspServer, document.
GetURI
(),
400
testLspServer, document.
GetURI
(), useVSDiagnostics);
420
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, document.
GetURI
(), useVSDiagnostics, useProgress: true);
456
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj2Document.
GetURI
(), useVSDiagnostics);
467
results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj1Document.
GetURI
(), useVSDiagnostics);
516
Uri = document.
GetURI
(),
550
await testLspServer.OpenDocumentAsync(csproj1Document.
GetURI
());
551
await testLspServer.OpenDocumentAsync(csproj2Document.
GetURI
());
554
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj1Document.
GetURI
(), useVSDiagnostics);
560
await testLspServer.ReplaceTextAsync(csproj2Document.
GetURI
(), (locationToReplace, "B"));
562
results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj1Document.
GetURI
(), useVSDiagnostics, originalResultId);
596
await testLspServer.OpenDocumentAsync(csproj1Document.
GetURI
());
597
await testLspServer.OpenDocumentAsync(csproj2Document.
GetURI
());
600
var results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj1Document.
GetURI
(), useVSDiagnostics);
607
await testLspServer.ReplaceTextAsync(csproj2Document.
GetURI
(), (locationToReplace, "B"));
609
results = await RunGetDocumentPullDiagnosticsAsync(testLspServer, csproj1Document.
GetURI
(), useVSDiagnostics, originalResultId);
633
testLspServer, document.
GetURI
(), useVSDiagnostics);
658
testLspServer, document.
GetURI
(), useVSDiagnostics);
685
testLspServer, document.
GetURI
(), useVSDiagnostics);
710
testLspServer, document.
GetURI
(), useVSDiagnostics);
749
testLspServer, document.
GetURI
(), useVSDiagnostics);
776
testLspServer, document.
GetURI
(), useVSDiagnostics);
1677
var uri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().
GetURI
();
SpellCheck\SpellCheckTests.cs (21)
38
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
60
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
91
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
()).ConfigureAwait(false);
105
results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
(), results.Single().ResultId).ConfigureAwait(false);
127
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
139
testLspServer, document.
GetURI
(), previousResultId: resultId);
163
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
177
results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
(), results.Single().ResultId);
210
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
223
testLspServer, document.
GetURI
(),
252
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
());
279
var results = await RunGetDocumentSpellCheckSpansAsync(testLspServer, document.
GetURI
(), useProgress: true);
312
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
385
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
423
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
459
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
484
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
512
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
()),
550
=> testLspServer.OpenDocumentAsync(document.
GetURI
());
553
=> testLspServer.CloseDocumentAsync(document.
GetURI
());
608
await testLspServer.InsertTextAsync(document.
GetURI
(), (lineInfo.Start.Line, lineInfo.Start.Character, text));
VSTypeScriptHandlerTests.cs (3)
50
var request = new TSRequest(document.
GetURI
(), ProtocolConversions.ProjectIdToProjectContextId(document.Project.Id));
76
TextDocument = CreateTextDocumentIdentifier(document.
GetURI
(), document.Project.Id)
158
Assert.Equal(context.Document.
GetURI
(), request.Document);
Workspaces\LspWorkspaceManagerTests.cs (15)
33
var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().
GetURI
();
60
var firstDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).
GetURI
();
61
var secondDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test2")).
GetURI
();
99
var firstDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).
GetURI
();
102
var secondDocumentUri = secondDocument.
GetURI
();
127
var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).
GetURI
();
151
var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).
GetURI
();
175
var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).
GetURI
();
183
var newDocumentUri = newSolution.GetRequiredDocument(newDocumentId).
GetURI
();
339
Assert.Equal(firstWorkspaceDocumentUri, firstDocument.
GetURI
());
344
Assert.Equal(secondWorkspaceDocumentUri, secondDocument.
GetURI
());
394
Assert.Equal(firstWorkspaceDocumentUri, firstDocument.
GetURI
());
399
Assert.Equal(secondWorkspaceDocumentUri, secondDocument.
GetURI
());
433
var documentUri = testWorkspace.CurrentSolution.Projects.First().Documents.First().
GetURI
();
470
var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().
GetURI
();
Microsoft.VisualStudio.LanguageServices.LiveShare.UnitTests (1)
ProjectsHandlerTests.cs (1)
38
SourceFiles = project.Documents.Select(document => document.
GetURI
()).ToArray()