67 references to SolutionChanged
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
210Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
Microsoft.CodeAnalysis.EditorFeatures (3)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
55case WorkspaceChangeKind.SolutionChanged:
Interactive\InteractiveSession.cs (1)
262}, WorkspaceChangeKind.SolutionChanged);
Shared\Preview\PreviewWorkspace.cs (1)
31this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionChanged, oldSolution, newSolution);
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
157case WorkspaceChangeKind.SolutionChanged:
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
49workspace.SetCurrentSolution(s => s.WithAnalyzerReferences(CreateSolutionLevelAnalyzerReferencesForWorkspace(workspace)), WorkspaceChangeKind.SolutionChanged);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
49_ = ((Workspace)target).SetCurrentSolution(UpdateOptions, changeKind: WorkspaceChangeKind.SolutionChanged);
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (1)
106if (e.Kind is WorkspaceChangeKind.SolutionChanged or WorkspaceChangeKind.SolutionAdded or WorkspaceChangeKind.SolutionRemoved or WorkspaceChangeKind.SolutionReloaded or WorkspaceChangeKind.SolutionCleared)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.cs (1)
299(IsAddingSolution(oldSolution, newSolution) ? WorkspaceChangeKind.SolutionAdded : WorkspaceChangeKind.SolutionChanged, projectId: null, documentId: null),
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (3)
18/// <see cref="WorkspaceChangeKind.SolutionChanged"/> if we can't give a more precise type. 65_workspaceChangeKind = WorkspaceChangeKind.SolutionChanged; 110_workspaceChangeKind = WorkspaceChangeKind.SolutionChanged;
Workspace\Workspace.cs (5)
586WorkspaceChangeKind.SolutionChanged); 1027}, WorkspaceChangeKind.SolutionChanged); 1039}, WorkspaceChangeKind.SolutionChanged); 1046=> SetCurrentSolution(oldSolution => oldSolution.WithFallbackAnalyzerOptions(options), WorkspaceChangeKind.SolutionChanged); 1468WorkspaceChangeKind.SolutionChanged);
Workspace\Workspace_SourceGeneration.cs (1)
54static (_, _) => (WorkspaceChangeKind.SolutionChanged, projectId: null, documentId: null),
Workspace\WorkspaceChangeKind.cs (1)
131=> kind is >= WorkspaceChangeKind.SolutionChanged and <= WorkspaceChangeKind.AnalyzerConfigDocumentChanged;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestWorkspace`1.cs (3)
122changeKind: WorkspaceChangeKind.SolutionChanged); 137changeKind: WorkspaceChangeKind.SolutionChanged); 568return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionChanged, oldSolution, newSolution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
593Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 617Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 637Assert.True(workspace.SetCurrentSolution(_ => originalAdditionalFile.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 668Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 695Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 724Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
Microsoft.VisualStudio.LanguageServices (4)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
103case WorkspaceChangeKind.SolutionChanged:
Packaging\PackageInstallerServiceFactory.cs (1)
444case WorkspaceChangeKind.SolutionChanged:
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
29=> workspace.ProjectSystemProjectFactory.ApplyChangeToWorkspace(w => w.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged));
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
111if (e.Kind == WorkspaceChangeKind.SolutionChanged)
Roslyn.VisualStudio.Next.UnitTests (35)
Services\ServiceHubServicesTests.cs (30)
271workspace.SetCurrentSolution(Populate, WorkspaceChangeKind.SolutionChanged); 315}, WorkspaceChangeKind.SolutionChanged); 335}, WorkspaceChangeKind.SolutionChanged); 349}, WorkspaceChangeKind.SolutionChanged); 456Assert.True(localWorkspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 468Assert.True(localWorkspace.SetCurrentSolution(s => s.WithDocumentText(tempDocId, SourceText.From("// " + i)), WorkspaceChangeKind.SolutionChanged)); 760Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 794Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 932Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 941Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 983Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 992Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1024Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1033Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1067Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1076Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1119Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1129Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1172Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1182Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1225Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1235Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1270Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1280Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1315Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1324Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1358Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1367Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1563Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1566Assert.True(workspace.SetCurrentSolution(_ => noCompilationProject.Solution, WorkspaceChangeKind.SolutionChanged));
Services\ServiceHubServicesTests_ExtensionMessageHandler.cs (4)
91}, WorkspaceChangeKind.SolutionChanged); 251}, WorkspaceChangeKind.SolutionChanged); 624}, WorkspaceChangeKind.SolutionChanged); 706}, WorkspaceChangeKind.SolutionChanged);
Services\SolutionServiceTests.cs (1)
282Assert.True(workspace.SetCurrentSolution(s => SetProjectProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged));