25 writes to DocumentUri
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Microsoft.CodeAnalysis.Remote.Razor (2)
Microsoft.VisualStudio.LanguageServices.Razor (1)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (2)
Microsoft.VisualStudioCode.RazorExtension (1)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (2)
229 references to DocumentUri
IdeBenchmarks (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (143)
Completion\CompletionFeaturesTests.cs (16)
84TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
333await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
359await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "s"));
462TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
656TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
763TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
793await testLspServer.OpenDocumentAsync(caret.DocumentUri);
797TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
814await testLspServer.InsertTextAsync(caret.DocumentUri, (caret.Range.End.Line, caret.Range.End.Character, "i"));
849await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
868await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "s"));
965TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
1034TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
1087await testLspServer.OpenDocumentAsync(caret.DocumentUri);
1091TextDocument = CreateTextDocumentIdentifier(caret.DocumentUri),
1111await testLspServer.InsertTextAsync(caret.DocumentUri, (caret.Range.End.Line, caret.Range.End.Character, "f"));
Completion\CompletionTests.cs (14)
1039await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
1052await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "a"));
1107await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
1120await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "C"));
1175await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
1189await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "ask"));
1201await testLspServer.DeleteTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, caretLocation.Range.End.Line, caretLocation.Range.End.Character + 3));
1214await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "i"));
1272await testLspServer.OpenDocumentAsync(firstCaret.DocumentUri);
1399await testLspServer.OpenDocumentAsync(firstCaretLocation.DocumentUri);
1415await testLspServer.InsertTextAsync(secondCaretLocation.DocumentUri, (secondCaretLocation.Range.End.Line, secondCaretLocation.Range.End.Character, "S"));
1430await testLspServer.InsertTextAsync(firstCaretLocation.DocumentUri, (firstCaretLocation.Range.End.Line, firstCaretLocation.Range.End.Character, "a"));
1519await testLspServer.OpenDocumentAsync(caretLocation.DocumentUri);
1532await testLspServer.InsertTextAsync(caretLocation.DocumentUri, (caretLocation.Range.End.Line, caretLocation.Range.End.Character, "z"));
DocumentChanges\DocumentChangesTests.cs (29)
44await DidOpen(testLspServer, locationTyped.DocumentUri);
51await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// hi there"));
64await DidClose(testLspServer, locationTyped.DocumentUri);
85await DidOpen(testLspServer, locationTyped.DocumentUri);
109await DidOpen(testLspServer, locationTyped.DocumentUri);
111await Assert.ThrowsAnyAsync<StreamJsonRpc.RemoteRpcException>(() => DidOpen(testLspServer, locationTyped.DocumentUri));
135await Assert.ThrowsAnyAsync<StreamJsonRpc.RemoteRpcException>(() => DidClose(testLspServer, locationTyped.DocumentUri));
159await Assert.ThrowsAnyAsync<StreamJsonRpc.RemoteRpcException>(() => DidChange(testLspServer, locationTyped.DocumentUri, (0, 0, "goo")));
183await DidOpen(testLspServer, locationTyped.DocumentUri);
185await DidClose(testLspServer, locationTyped.DocumentUri);
206await DidOpen(testLspServer, locationTyped.DocumentUri);
208await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// hi there"));
240await DidOpen(testLspServer, locationTyped.DocumentUri);
242await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// hi there"));
244var documentTextFromWorkspace = (await testLspServer.GetDocumentTextAsync(locationTyped.DocumentUri)).ToString();
277await DidOpen(testLspServer, locationTyped.DocumentUri);
279await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// hi there"), (5, 0, $" // this builds on that{Environment.NewLine}"));
312await DidOpen(testLspServer, locationTyped.DocumentUri);
314await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// there"), (4, 11, "hi "));
346await DidOpen(testLspServer, locationTyped.DocumentUri);
348await DidChange(testLspServer, locationTyped.DocumentUri, (5, 0, $" // this builds on that{Environment.NewLine}"), (4, 8, "// hi there"));
424await DidOpen(testLspServer, locationTyped.DocumentUri);
426await DidChange(testLspServer, locationTyped.DocumentUri, (4, 8, "// hi there"));
427await DidChange(testLspServer, locationTyped.DocumentUri, (5, 0, $" // this builds on that{Environment.NewLine}"));
453await DidOpen(testLspServer, locationTyped.DocumentUri, version: 0);
454var version = await GetVersionAsync(locationTyped.DocumentUri);
457await DidChange(testLspServer, locationTyped.DocumentUri, version: 1, (0, 5, ", World"));
458Assert.Equal(1, await GetVersionAsync(locationTyped.DocumentUri));
476var documentText = await testLspServer.GetDocumentTextAsync(locationTyped.DocumentUri);
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (7)
35await DidOpen(testLspServer, caretLocation.DocumentUri);
40var solution = await GetLSPSolutionAsync(testLspServer, caretLocation.DocumentUri).ConfigureAwait(false);
47await DidClose(testLspServer, caretLocation.DocumentUri);
79await DidOpen(testLspServer, caretLocation.DocumentUri);
83await DidChange(testLspServer, caretLocation.DocumentUri, (4, 8, "// hi there"));
85var solution = await GetLSPSolutionAsync(testLspServer, caretLocation.DocumentUri).ConfigureAwait(false);
100await DidClose(testLspServer, caretLocation.DocumentUri);
DocumentChanges\DocumentChangesTests.WithFindAllReferences.cs (5)
37await DidOpen(testLspServer, locationTyped.DocumentUri);
47await DidChange(testLspServer, locationTyped.DocumentUri, (5, 0, "var i = someInt + 1;\r\n"));
56await DidChange(testLspServer, locationTyped.DocumentUri, (10, 0, "int someInt = A.someInt + 1;\r\n"));
66await DidChange(testLspServer, locationTyped.DocumentUri, (13, 0, "var j = someInt + A.someInt;\r\n"));
82await DidClose(testLspServer, locationTyped.DocumentUri);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.Razor.Workspaces (1)
Microsoft.CodeAnalysis.Remote.Razor (2)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Razor (3)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (32)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (25)
81Assert.EndsWith("String.cs", location.DocumentUri.UriString);
87var line = File.ReadLines(location.DocumentUri.GetRequiredSystemUri().LocalPath).ElementAt(location.Range.Start.Line);
157Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
192Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
225Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
258Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
296Assert.Equal(FileUri("File1.razor"), location.DocumentUri.GetRequiredSystemUri());
338Assert.Equal(FileUri("SurveyPrompt.cs"), location.DocumentUri.GetRequiredSystemUri());
380Assert.Equal(FileUri("SurveyPrompt.cs"), location.DocumentUri.GetRequiredSystemUri());
491Assert.Equal(FileUri("AuthorViewComponent.cs"), location.DocumentUri.GetRequiredSystemUri());
527Assert.Equal(FileUri("AboutBoxTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
571Assert.Equal(FileUri("AboutBoxTagHelper_1.cs"), location.DocumentUri.GetRequiredSystemUri());
609Assert.Equal(FileUri("AboutBoxTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
654Assert.Equal(FileUri("AboutBoxTagHelper_2.cs"), location.DocumentUri.GetRequiredSystemUri());
718Assert.Equal(FileUri("FooTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
782Assert.Equal(FileUri("FooTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
869Assert.Equal(FileUri("TagHelpers.cs"), location.DocumentUri.GetRequiredSystemUri());
873Assert.Equal(FileUri("TagHelpers.cs"), location.DocumentUri.GetRequiredSystemUri());
898Assert.Equal(FileUri("Views/Shared/_Partial.cshtml"), location.DocumentUri.GetRequiredSystemUri());
922Assert.Equal(FileUri("_Partial.cshtml"), location.DocumentUri.GetRequiredSystemUri());
952Assert.Equal(FileUri("Pages/Counter.razor"), location.DocumentUri.GetRequiredSystemUri());
974Assert.EndsWith("String.cs", location.DocumentUri.UriString);
980var line = File.ReadLines(location.DocumentUri.GetRequiredSystemUri().LocalPath).ElementAt(location.Range.Start.Line);
1030Assert.Equal(surveyPromptDocument.GetURI(), location.DocumentUri);
1055Assert.Equal(document.GetURI(), location.DocumentUri);
Microsoft.VisualStudioCode.RazorExtension (3)
Microsoft.VisualStudioCode.RazorExtension.UnitTests (31)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostGoToDefinitionEndpointTest.cs (25)
81Assert.EndsWith("String.cs", location.DocumentUri.UriString);
87var line = File.ReadLines(location.DocumentUri.GetRequiredSystemUri().LocalPath).ElementAt(location.Range.Start.Line);
157Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
192Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
225Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
258Assert.Equal(FileUri("SurveyPrompt.razor"), location.DocumentUri.GetRequiredSystemUri());
296Assert.Equal(FileUri("File1.razor"), location.DocumentUri.GetRequiredSystemUri());
338Assert.Equal(FileUri("SurveyPrompt.cs"), location.DocumentUri.GetRequiredSystemUri());
380Assert.Equal(FileUri("SurveyPrompt.cs"), location.DocumentUri.GetRequiredSystemUri());
491Assert.Equal(FileUri("AuthorViewComponent.cs"), location.DocumentUri.GetRequiredSystemUri());
527Assert.Equal(FileUri("AboutBoxTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
571Assert.Equal(FileUri("AboutBoxTagHelper_1.cs"), location.DocumentUri.GetRequiredSystemUri());
609Assert.Equal(FileUri("AboutBoxTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
654Assert.Equal(FileUri("AboutBoxTagHelper_2.cs"), location.DocumentUri.GetRequiredSystemUri());
718Assert.Equal(FileUri("FooTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
782Assert.Equal(FileUri("FooTagHelper.cs"), location.DocumentUri.GetRequiredSystemUri());
869Assert.Equal(FileUri("TagHelpers.cs"), location.DocumentUri.GetRequiredSystemUri());
873Assert.Equal(FileUri("TagHelpers.cs"), location.DocumentUri.GetRequiredSystemUri());
898Assert.Equal(FileUri("Views/Shared/_Partial.cshtml"), location.DocumentUri.GetRequiredSystemUri());
922Assert.Equal(FileUri("_Partial.cshtml"), location.DocumentUri.GetRequiredSystemUri());
952Assert.Equal(FileUri("Pages/Counter.razor"), location.DocumentUri.GetRequiredSystemUri());
974Assert.EndsWith("String.cs", location.DocumentUri.UriString);
980var line = File.ReadLines(location.DocumentUri.GetRequiredSystemUri().LocalPath).ElementAt(location.Range.Start.Line);
1030Assert.Equal(surveyPromptDocument.GetURI(), location.DocumentUri);
1055Assert.Equal(document.GetURI(), location.DocumentUri);