55 references to SetCurrentSolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (1)
174Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1067workspace.SetCurrentSolution(s => s.WithProjectCompilationOptions(projectId, compilationOptions), WorkspaceChangeKind.ProjectChanged, projectId);
Microsoft.CodeAnalysis.EditorFeatures (3)
Interactive\InteractiveSession.cs (1)
227_workspace.SetCurrentSolution(solution =>
Interactive\InteractiveWorkspace.cs (1)
84SetCurrentSolution(solution => emptySolution.WithAnalyzerReferences(solution.AnalyzerReferences), WorkspaceChangeKind.SolutionCleared);
Interactive\InteractiveWorkspace.SolutionAnalyzerSetter.cs (1)
37=> _workspace.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
EditAndContinue\CompileTimeSolutionProviderTests.cs (2)
119workspace.SetCurrentSolution(s => s. 140workspace.SetCurrentSolution(
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
4702Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionAdded));
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Ordering\RequestOrderingTests.cs (1)
212testLspServer.TestWorkspace.SetCurrentSolution(s => s.WithProjectName(s.Projects.First().Id, "NewName"), WorkspaceChangeKind.ProjectChanged);
Microsoft.CodeAnalysis.Workspaces (37)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
204Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 243Workspace.SetCurrentSolution( 312Workspace.SetCurrentSolution(
Workspace\Workspace.cs (34)
410SetCurrentSolution( 548this.SetCurrentSolution( 567this.SetCurrentSolution( 588this.SetCurrentSolution( 599this.SetCurrentSolution( 610this.SetCurrentSolution( 626this.SetCurrentSolution( 655=> SetCurrentSolution(oldSolution => oldSolution.WithProjectAssemblyName(projectId, assemblyName), WorkspaceChangeKind.ProjectChanged, projectId); 661=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 667=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputRefFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 677=> SetCurrentSolution(oldSolution => oldSolution.WithProjectName(projectId, name).WithProjectFilePath(projectId, filePath), WorkspaceChangeKind.ProjectChanged, projectId); 683=> SetCurrentSolution(oldSolution => oldSolution.WithProjectDefaultNamespace(projectId, defaultNamespace), WorkspaceChangeKind.ProjectChanged, projectId); 689=> SetCurrentSolution(oldSolution => oldSolution.WithProjectCompilationOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 695=> SetCurrentSolution(oldSolution => oldSolution.WithProjectParseOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 702SetCurrentSolution(oldSolution => 719SetCurrentSolution(oldSolution => 733SetCurrentSolution(oldSolution => 745SetCurrentSolution(oldSolution => 757SetCurrentSolution(oldSolution => 769SetCurrentSolution(oldSolution => 781SetCurrentSolution(oldSolution => 793SetCurrentSolution(oldSolution => 806=> SetCurrentSolution(oldSolution => oldSolution.WithHasAllInformation(projectId, hasAllInformation), WorkspaceChangeKind.ProjectChanged, projectId); 812=> SetCurrentSolution(oldSolution => oldSolution.WithRunAnalyzers(projectId, runAnalyzers), WorkspaceChangeKind.ProjectChanged, projectId); 819this.SetCurrentSolution( 847this.SetCurrentSolution( 857this.SetCurrentSolution( 883SetCurrentSolution( 1099SetCurrentSolution( 1115SetCurrentSolution( 1130this.SetCurrentSolution( 1153SetCurrentSolution( 1169this.SetCurrentSolution( 1190SetCurrentSolution(
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
573Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 597Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 617Assert.True(workspace.SetCurrentSolution(_ => originalAdditionalFile.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 648Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 675Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 704Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
38=> _workspace.ProjectSystemProjectFactory.ApplyChangeToWorkspace(w => w.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged));
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionAssetCacheTests.cs (1)
103workspace.SetCurrentSolution(solution => solution.AddProject("Project", "Assembly", LanguageNames.CSharp).Solution, WorkspaceChangeKind.ProjectAdded);
Services\SolutionServiceTests.cs (1)
195Assert.True(workspace.SetCurrentSolution(s => SetProjectProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged));