180 references to GetLocations
IdeBenchmarks (1)
Lsp\LspCompletionBenchmarks.cs (1)
91_testServer.GetLocations("caret").Single(),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (179)
CodeActions\CodeActionResolveTests.cs (6)
43data: CreateCodeActionResolveData(CSharpAnalyzersResources.Use_implicit_type, testLspServer.GetLocations("caret").Single()), 66data: CreateCodeActionResolveData(CSharpAnalyzersResources.Use_implicit_type, testLspServer.GetLocations("caret").Single()), 71edit: GenerateWorkspaceEdit(testLspServer.GetLocations("caret"), expectedTextEdits)); 96testLspServer.GetLocations("caret").Single()), 126testLspServer.GetLocations("caret").Single()), 132testLspServer.GetLocations("caret"), expectedTextEdits));
CodeActions\CodeActionsTests.cs (3)
52var caretLocation = testLspServer.GetLocations("caret").Single(); 85var caretLocation = testLspServer.GetLocations("caret").Single(); 121var caret = testLspServer.GetLocations("caret").Single();
CodeActions\RunCodeActionsTests.cs (1)
47var caretLocation = testLspServer.GetLocations("caret").Single();
CodeLens\AbstractCodeLensTests.cs (1)
23var expectedCodeLens = testLspServer.GetLocations("codeLens").Single();
Completion\CompletionResolveTests.cs (1)
390testLspServer.GetLocations("caret").Single(), LSP.VSInternalCompletionInvokeKind.Explicit, "\0", LSP.CompletionTriggerKind.Invoked);
Completion\CompletionTests.cs (40)
76testLspServer.GetLocations("caret").Single(), 123testLspServer.GetLocations("caret").Single(), 156testLspServer.GetLocations("caret").Single(), 184testLspServer.GetLocations("caret").Single(), 216testLspServer.GetLocations("caret").Single(), 239testLspServer.GetLocations("caret").Single(), 261testLspServer.GetLocations("caret").Single(), 295testLspServer.GetLocations("caret").Single(), 319testLspServer.GetLocations("caret").Single(), 347testLspServer.GetLocations("caret").Single(), 372testLspServer.GetLocations("caret").Single(), 409testLspServer.GetLocations("caret").Single(), 446testLspServer.GetLocations("caret").Single(), 498testLspServer.GetLocations("caret").Single(), 538testLspServer.GetLocations("caret").Single(), 593testLspServer.GetLocations("caret").Single(), 624testLspServer.GetLocations("caret").Single(), 652testLspServer.GetLocations("caret").Single(), 678testLspServer.GetLocations("caret").Single(), 705testLspServer.GetLocations("caret").Single(), 757testLspServer.GetLocations("caret").Single(), 808var caretLocation = testLspServer.GetLocations("caret").Single(); 861var caretLocation = testLspServer.GetLocations("caret").Single(); 878testLspServer.GetLocations("caret").Single(), 927var caretLocation = testLspServer.GetLocations("caret").Single(); 944testLspServer.GetLocations("caret").Single(), 993var caretLocation = testLspServer.GetLocations("caret").Single(); 1010testLspServer.GetLocations("caret").Single(), 1022testLspServer.GetLocations("caret").Single(), 1035testLspServer.GetLocations("caret").Single(), 1088var firstCaret = testLspServer.GetLocations("firstCaret").Single(); 1104testLspServer.GetLocations("secondCaret").Single(), 1152var caretLocation = testLspServer.GetLocations("caret").Single(); 1155testLspServer.GetLocations("caret").Single(), 1211var firstCaretLocation = testLspServer.GetLocations("firstCaret").Single(); 1227var secondCaretLocation = testLspServer.GetLocations("secondCaret").Single(); 1284testLspServer.GetLocations("caret").Single(), 1337var caretLocation = testLspServer.GetLocations("caret").Single(); 1354testLspServer.GetLocations("caret").Single(), 1378testLspServer.GetLocations("caret").Single(),
Definitions\GoToDefinitionTests.cs (8)
39var results = await RunGotoDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 40AssertLocationsEqual(testLspServer.GetLocations("definition"), results); 66var results = await RunGotoDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 67AssertLocationsEqual(testLspServer.GetLocations("definition"), results); 108var results = await RunGotoDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 124var results = await RunGotoDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 151var results = await RunGotoDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 152AssertLocationsEqual(testLspServer.GetLocations("definition"), results);
Definitions\GoToTypeDefinitionTests.cs (5)
36var results = await RunGotoTypeDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 37AssertLocationsEqual(testLspServer.GetLocations("definition"), results); 62var results = await RunGotoTypeDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 63AssertLocationsEqual(testLspServer.GetLocations("definition"), results); 80var results = await RunGotoTypeDefinitionAsync(testLspServer, testLspServer.GetLocations("caret").Single());
Diagnostics\PullDiagnosticTests.cs (10)
559var locationToReplace = testLspServer.GetLocations("caret").Single().Range; 606var locationToReplace = testLspServer.GetLocations("caret").Single().Range; 702var firstLocation = testLspServer.GetLocations("first").Single().Range; 741var firstLocation = testLspServer.GetLocations("first").Single().Range; 767var openLocation = testLspServer.GetLocations("open").Single().Range; 768var closeLocation = testLspServer.GetLocations("close").Single().Range; 769var lineLocation = testLspServer.GetLocations("line").Single().Range; 1303var caretLocation = testLspServer.GetLocations("caret").First().Range; 1378var caretLocation = testLspServer.GetLocations("caret").First().Range; 1445var caretLocation = testLspServer.GetLocations("caret").First().Range;
DocumentChanges\DocumentChangesTests.cs (1)
326var locationTyped = testLspServer.GetLocations("type").Single();
DocumentChanges\DocumentChangesTests.LinkedDocuments.cs (2)
32var caretLocation = testLspServer.GetLocations("caret").Single(); 73var caretLocation = testLspServer.GetLocations("caret").Single();
FoldingRanges\FoldingRangesTests.cs (3)
31var expected = testLspServer.GetLocations("foldingRange") 47var expected = testLspServer.GetLocations("foldingRange") 63var expected = testLspServer.GetLocations("foldingRange")
Formatting\FormatDocumentOnTypeTests.cs (2)
46var locationTyped = testLspServer.GetLocations("type").Single(); 77var locationTyped = testLspServer.GetLocations("type").Single();
Formatting\FormatDocumentRangeTests.cs (2)
43var rangeToFormat = testLspServer.GetLocations("format").Single(); 71var rangeToFormat = testLspServer.GetLocations("format").Single();
Formatting\FormatDocumentTests.cs (3)
44var documentURI = testLspServer.GetLocations("caret").Single().Uri; 72var documentURI = testLspServer.GetLocations("caret").Single().Uri; 100var documentURI = testLspServer.GetLocations("caret").Single().Uri;
Highlights\DocumentHighlightTests.cs (7)
43CreateDocumentHighlight(LSP.DocumentHighlightKind.Text, testLspServer.GetLocations("text").Single()), 44CreateDocumentHighlight(LSP.DocumentHighlightKind.Read, testLspServer.GetLocations("read").Single()), 45CreateDocumentHighlight(LSP.DocumentHighlightKind.Write, testLspServer.GetLocations("write").Single()) 48var results = await RunGetDocumentHighlightAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 67var expectedLocations = testLspServer.GetLocations("text"); 69var results = await RunGetDocumentHighlightAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 91var results = await RunGetDocumentHighlightAsync(testLspServer, testLspServer.GetLocations("caret").Single());
Hover\HoverTests.cs (9)
41var expectedLocation = testLspServer.GetLocations("caret").Single(); 65var expectedLocation = testLspServer.GetLocations("caret").Single(); 88var expectedLocation = testLspServer.GetLocations("caret").Single(); 116var expectedLocation = testLspServer.GetLocations("caret").Single(); 140var results = await RunGetHoverAsync(testLspServer, testLspServer.GetLocations("caret").Single()).ConfigureAwait(false); 188var location = testLspServer.GetLocations("caret").Single(); 242var expectedLocation = testLspServer.GetLocations("caret").Single(); 312var expectedLocation = testLspServer.GetLocations("caret").Single(); 372var expectedLocation = testLspServer.GetLocations("caret").Single();
InlineCompletions\InlineCompletionsTests.cs (2)
249var locationTyped = testLspServer.GetLocations("tab").Single(); 274var locationTyped = testLspServer.GetLocations("tab").Single();
OnAutoInsert\OnAutoInsertTests.cs (2)
404var locationTyped = testLspServer.GetLocations("type").Single(); 420var locationTyped = testLspServer.GetLocations("type").Single();
Ordering\RequestOrderingTests.cs (2)
199await ExecuteDidOpen(testLspServer, testLspServer.GetLocations("caret").First().Uri); 236await ExecuteDidOpen(testLspServer, testLspServer.GetLocations("caret").First().Uri);
ProjectContext\GetTextDocumentWithContextHandlerTests.cs (3)
33var documentUri = testLspServer.GetLocations("caret").Single().Uri; 59var documentUri = testLspServer.GetLocations("caret").Single().Uri; 90var documentUri = testLspServer.GetLocations("caret").Single().Uri;
References\FindAllReferencesHandlerFeaturesTests.cs (2)
51var results = await FindAllReferencesHandlerTests.RunFindAllReferencesAsync<LSP.Location>(testLspServer, testLspServer.GetLocations("caret").First()); 52AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result));
References\FindAllReferencesHandlerTests.cs (13)
52var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 53AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 90var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First(), progress); 103AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 138var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 139AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 181var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 182AssertLocationsEqual(testLspServer.GetLocations("reference"), results.Select(result => result.Location)); 205var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 224var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 246var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 276var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First()); 288var results = await RunFindAllReferencesAsync<LSP.VSInternalReferenceItem>(testLspServer, testLspServer.GetLocations("caret").First());
References\FindImplementationsTests.cs (9)
41var results = await RunFindImplementationAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 42AssertLocationsEqual(testLspServer.GetLocations("implementation"), results); 70var results = await RunFindImplementationAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 71AssertLocationsEqual(testLspServer.GetLocations("implementation"), results); 114var results = await RunFindImplementationAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 129var results = await RunFindImplementationAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 130AssertLocationsEqual(testLspServer.GetLocations("implementation"), results); 148var results = await RunFindImplementationAsync(testLspServer, testLspServer.GetLocations("caret").Single()); 152AssertLocationsEqual(testLspServer.GetLocations("implementation"), results);
Rename\RenameTests.cs (7)
41var renameLocation = testLspServer.GetLocations("caret").First(); 43var expectedEdits = testLspServer.GetLocations("renamed").Select(location => new LSP.TextEdit() { NewText = renameValue, Range = location.Range }); 64var renameLocation = testLspServer.GetLocations("caret").First(); 97var renameLocation = testLspServer.GetLocations("caret").First(); 99var expectedEdits = testLspServer.GetLocations("renamed").Select(location => new LSP.TextEdit() { NewText = renameValue, Range = location.Range }); 143var renameLocation = testLspServer.GetLocations("caret").First(); 145var expectedEdits = testLspServer.GetLocations("renamed").Select(location => new LSP.TextEdit() { NewText = renameValue, Range = location.Range });
SemanticTokens\SemanticTokensRangeTests.cs (2)
39var results = await RunGetSemanticTokensRangeAsync(testLspServer, testLspServer.GetLocations("caret").First(), range); 172var results = await RunGetSemanticTokensRangeAsync(testLspServer, testLspServer.GetLocations("caret").First(), range);
SignatureHelp\SignatureHelpTests.cs (1)
50var results = await RunGetSignatureHelpAsync(testLspServer, testLspServer.GetLocations("caret").Single());
Symbols\DocumentSymbolsTests.cs (6)
47CreateDocumentSymbol(LSP.SymbolKind.Class, "A", "A", testLspServer.GetLocations("class").Single(), testLspServer.GetLocations("classSelection").Single()) 49CreateDocumentSymbol(LSP.SymbolKind.Method, "M", "M()", testLspServer.GetLocations("method").Single(), testLspServer.GetLocations("methodSelection").Single(), expected.First()); 68CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal), 69CreateSymbolInformation(LSP.SymbolKind.Method, "M()", testLspServer.GetLocations("method").Single(), Glyph.MethodPrivate, "A")
Symbols\WorkspaceSymbolsTests.cs (10)
41CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution())) 61CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution())) 87CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method").Single(), Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A")) 110CreateSymbolInformation(LSP.SymbolKind.Variable, "i", testLspServer.GetLocations("local").Single(), Glyph.Local, GetContainerName(testLspServer.GetCurrentSolution(), "A.M.i")) 136CreateSymbolInformation(LSP.SymbolKind.Field, "F", testLspServer.GetLocations("field")[0], Glyph.FieldPrivate, classAContainerName), 137CreateSymbolInformation(LSP.SymbolKind.Class, "F", testLspServer.GetLocations("class").Single(), Glyph.ClassPrivate, classAContainerName), 138CreateSymbolInformation(LSP.SymbolKind.Field, "F", testLspServer.GetLocations("field")[1], Glyph.FieldPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A.F")) 167CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method")[0], Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "A")), 168CreateSymbolInformation(LSP.SymbolKind.Method, "M", testLspServer.GetLocations("method")[1], Glyph.MethodPrivate, GetContainerName(testLspServer.GetCurrentSolution(), "B")) 202CreateSymbolInformation(LSP.SymbolKind.Class, "A", testLspServer.GetLocations("class").Single(), Glyph.ClassInternal, GetContainerName(testLspServer.GetCurrentSolution()))
ValidateBreakableRange\ValidateBreakableRangeTests.cs (16)
36var caret = testLspServer.GetLocations("caret").Single(); 38var expected = testLspServer.GetLocations("expected").Single().Range; 59var caret = testLspServer.GetLocations("caret").Single(); 80var caret = testLspServer.GetLocations("caret").Single(); 99var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 101var expected = testLspServer.GetLocations("expected").Single().Range; 120var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 142var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 165var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 167var expected = testLspServer.GetLocations("expected").Single().Range; 192var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 194var expected = testLspServer.GetLocations("expected").Single().Range; 215var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 217var expected = testLspServer.GetLocations("expected").Single().Range; 237var breakpoint = testLspServer.GetLocations("breakpoint").Single(); 239var expected = testLspServer.GetLocations("expected").Single().Range;