126 references to GetCurrentSolution
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (125)
CodeLens\AbstractCodeLensTests.cs (1)
25var textDocument = CreateTextDocumentIdentifier(testLspServer.GetCurrentSolution().Projects.Single().Documents.Single().GetURI());
Completion\CompletionResolveTests.cs (1)
182var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
Completion\CompletionTests.cs (17)
81var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 128var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 161var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 189var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 266var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 324var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 352var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 377var solution = testLspServer.GetCurrentSolution(); 414var solution = testLspServer.GetCurrentSolution(); 451var solution = testLspServer.GetCurrentSolution(); 503var solution = testLspServer.GetCurrentSolution(); 598var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 629var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 657var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 683var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 710var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 1383var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
77var initialSolution = testLspServer.GetCurrentSolution();
Diagnostics\PullDiagnosticTests.cs (41)
44var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 61var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 83var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 120var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 145var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 168var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 196var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 213var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 232var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 252var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 283var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 310var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 343var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 366var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 395var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 416var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 445var csproj1Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj1").Single().Documents.First(); 446var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 494var csproj1Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj1").Single().Documents.First(); 495var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 547var csproj1Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj1").Single().Documents.First(); 548var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 593var csproj1Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj1").Single().Documents.First(); 594var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 628var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 653var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 674var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 705var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 744var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 771var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 987var firstDocument = testLspServer.GetCurrentSolution().Projects.Single().Documents.First(); 1001var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 1027testLspServer.GetCurrentSolution().Projects.Single().Id, 1208var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.First(); 1292var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 1364var csproj3Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj3").Single().Documents.First(); 1432var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 1495var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 1550var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 1606var csproj2Document = testLspServer.GetCurrentSolution().Projects.Where(p => p.Name == "CSProj2").Single().Documents.First(); 1677var uri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().GetURI();
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (3)
36Assert.Equal(ProtocolConversions.GetUriFromFilePath(testLspServer.GetCurrentSolution().Projects.First().FilePath!), results[1].Uri); 55Assert.Equal(ProtocolConversions.GetUriFromFilePath(testLspServer.GetCurrentSolution().Projects.First().FilePath!), results[1].Uri); 57var initialSolution = testLspServer.GetCurrentSolution();
DocumentChanges\DocumentChangesTests.cs (2)
239var documentTextFromWorkspace = (await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync()).ToString(); 327var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
FoldingRanges\FoldingRangesTests.cs (1)
73var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
Formatting\FormatDocumentOnTypeTests.cs (2)
47var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync(); 78var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
Formatting\FormatDocumentRangeTests.cs (2)
44var documentText = await testLspServer.GetCurrentSolution().GetDocuments(rangeToFormat.Uri).Single().GetTextAsync(); 72var documentText = await testLspServer.GetCurrentSolution().GetDocuments(rangeToFormat.Uri).Single().GetTextAsync();
Formatting\FormatDocumentTests.cs (3)
45var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync(); 73var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync(); 101var documentText = await testLspServer.GetCurrentSolution().GetDocuments(documentURI).Single().GetTextAsync();
Hover\HoverTests.cs (1)
190foreach (var project in testLspServer.GetCurrentSolution().Projects)
InlineCompletions\InlineCompletionsTests.cs (2)
251var document = testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single(); 276var document = testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single();
Miscellaneous\LspMiscellaneousFilesWorkspaceTests.cs (3)
123var fileInWorkspaceUri = new Uri(testLspServer.GetCurrentSolution().Projects.Single().Documents.Single().FilePath); 156var project = testLspServer.GetCurrentSolution().Projects.Single(); 166Assert.Contains(looseFileUri.AbsolutePath, testLspServer.GetCurrentSolution().Projects.Single().Documents.Select(d => d.FilePath));
OnAutoInsert\OnAutoInsertTests.cs (2)
406var document = testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single(); 421var documentText = await testLspServer.GetCurrentSolution().GetDocuments(locationTyped.Uri).Single().GetTextAsync();
Options\LspOptionsTests.cs (2)
38var project = testLspServer.GetCurrentSolution().Projects.Single().Services; 52var project = testLspServer.GetCurrentSolution().Projects.Single().Services;
Ordering\RequestOrderingTests.cs (2)
192var expectedSolution = testLspServer.GetCurrentSolution(); 214expectedSolution = testLspServer.GetCurrentSolution();
ProjectContext\GetTextDocumentWithContextHandlerTests.cs (2)
40Assert.Equal(ProtocolConversions.ProjectIdToProjectContextId(testLspServer.GetCurrentSolution().ProjectIds.Single()), context.Id); 92foreach (var project in testLspServer.GetCurrentSolution().Projects)
SemanticTokens\AbstractSemanticTokensTests.cs (1)
53var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
SemanticTokens\SemanticTokensRangeTests.cs (6)
60var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 95var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 130var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 205var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 258var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First(); 326var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
SpellCheck\SpellCheckTests.cs (8)
37var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 56var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 84var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 123var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 159var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 207var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 248var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 275var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single();
Symbols\DocumentSymbolsTests.cs (1)
105var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
Symbols\WorkspaceSymbolsTests.cs (9)
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")) 133var classAContainerName = GetContainerName(testLspServer.GetCurrentSolution(), "A"); 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()))
VSTypeScriptHandlerTests.cs (2)
49var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single(); 73var document = testLspServer.GetCurrentSolution().Projects.Single().Documents.Single();
Workspaces\LspWorkspaceManagerTests.cs (10)
33var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().GetURI(); 51Assert.Equal(testLspServer.GetCurrentSolution(), closedDocument!.Project.Solution); 60var firstDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).GetURI(); 61var secondDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test2")).GetURI(); 99var firstDocumentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).GetURI(); 101var secondDocument = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test2")); 127var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).GetURI(); 151var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).GetURI(); 175var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.Single(d => d.FilePath!.Contains("test1")).GetURI(); 470var documentUri = testLspServer.GetCurrentSolution().Projects.First().Documents.First().GetURI();
Microsoft.VisualStudio.LanguageServices.LiveShare.UnitTests (1)
ProjectsHandlerTests.cs (1)
26var solution = testLspServer.GetCurrentSolution();