270 references to WorkspaceChangeKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionServiceTests.cs (1)
210Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1425Assert.Equal(WorkspaceChangeKind.DocumentChanged, e.Kind);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1066workspace.SetCurrentSolution(s => s.WithProjectCompilationOptions(projectId, compilationOptions), WorkspaceChangeKind.ProjectChanged, projectId);
Microsoft.CodeAnalysis.EditorFeatures (14)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
288if (args.Kind != WorkspaceChangeKind.ProjectChanged)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (8)
55case WorkspaceChangeKind.SolutionChanged: 56case WorkspaceChangeKind.SolutionAdded: 57case WorkspaceChangeKind.SolutionRemoved: 58case WorkspaceChangeKind.SolutionCleared: 59case WorkspaceChangeKind.SolutionReloaded: 60case WorkspaceChangeKind.ProjectAdded: 61case WorkspaceChangeKind.ProjectRemoved: 62case WorkspaceChangeKind.ProjectChanged:
Interactive\InteractiveSession.cs (1)
262}, WorkspaceChangeKind.SolutionChanged);
Interactive\InteractiveWorkspace.cs (1)
68SetCurrentSolution(solution => emptySolution.WithAnalyzerReferences(solution.AnalyzerReferences), WorkspaceChangeKind.SolutionCleared);
Remote\SolutionChecksumUpdater.cs (1)
152if (e.Kind == WorkspaceChangeKind.DocumentChanged)
Shared\Preview\PreviewWorkspace.cs (1)
31this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionChanged, oldSolution, newSolution);
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (1)
24if (e.Kind == WorkspaceChangeKind.ProjectChanged)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
259Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionAdded));
Microsoft.CodeAnalysis.Features (34)
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (4)
66case WorkspaceChangeKind.SolutionAdded: 67case WorkspaceChangeKind.SolutionCleared: 68case WorkspaceChangeKind.SolutionReloaded: 69case WorkspaceChangeKind.SolutionRemoved:
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (3)
128public static void LogWorkspaceEvent(CountLogAggregator<WorkspaceChangeKind> logAggregator, WorkspaceChangeKind kind) 131public static void LogWorkCoordinatorShutdown(int correlationId, CountLogAggregator<WorkspaceChangeKind> logAggregator)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (22)
26private readonly CountLogAggregator<WorkspaceChangeKind> _logAggregator = new(); 153case WorkspaceChangeKind.SolutionAdded: 157case WorkspaceChangeKind.SolutionChanged: 158case WorkspaceChangeKind.SolutionReloaded: 162case WorkspaceChangeKind.SolutionCleared: 163case WorkspaceChangeKind.SolutionRemoved: 167case WorkspaceChangeKind.ProjectAdded: 172case WorkspaceChangeKind.ProjectChanged: 173case WorkspaceChangeKind.ProjectReloaded: 178case WorkspaceChangeKind.ProjectRemoved: 183case WorkspaceChangeKind.DocumentAdded: 188case WorkspaceChangeKind.DocumentReloaded: 189case WorkspaceChangeKind.DocumentChanged: 194case WorkspaceChangeKind.DocumentRemoved: 199case WorkspaceChangeKind.AdditionalDocumentAdded: 200case WorkspaceChangeKind.AdditionalDocumentRemoved: 201case WorkspaceChangeKind.AdditionalDocumentChanged: 202case WorkspaceChangeKind.AdditionalDocumentReloaded: 203case WorkspaceChangeKind.AnalyzerConfigDocumentAdded: 204case WorkspaceChangeKind.AnalyzerConfigDocumentRemoved: 205case WorkspaceChangeKind.AnalyzerConfigDocumentChanged: 206case WorkspaceChangeKind.AnalyzerConfigDocumentReloaded:
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
24ValueTask OnWorkspaceChangedAsync(Checksum oldSolutionChecksum, Checksum newSolutionChecksum, WorkspaceChangeKind kind, ProjectId? projectId, DocumentId? documentId, CancellationToken cancellationToken);
SemanticSearch\SemanticSearchWorkspace.cs (2)
56? (WorkspaceChangeKind.DocumentChanged, projectId: null, documentId: SemanticSearchUtilities.GetQueryDocumentId(newSolution)) 57: (WorkspaceChangeKind.ProjectAdded, projectId: SemanticSearchUtilities.GetQueryProjectId(newSolution), documentId: null),
Workspace\CompileTimeSolutionProvider.cs (2)
70if (e.Kind is WorkspaceChangeKind.SolutionCleared or WorkspaceChangeKind.SolutionRemoved)
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\CompileTimeSolutionProviderTests.cs (2)
119WorkspaceChangeKind.SolutionAdded); 137WorkspaceChangeKind.DocumentAdded,
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
49workspace.SetCurrentSolution(s => s.WithAnalyzerReferences(CreateSolutionLevelAnalyzerReferencesForWorkspace(workspace)), WorkspaceChangeKind.SolutionChanged);
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
49_ = ((Workspace)target).SetCurrentSolution(UpdateOptions, changeKind: WorkspaceChangeKind.SolutionChanged);
Handler\AbstractRefreshQueue.cs (1)
81if (e.DocumentId is not null && e.Kind is WorkspaceChangeKind.DocumentChanged)
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (3)
73if (e.Kind is WorkspaceChangeKind.DocumentChanged) 78else if (e.Kind is WorkspaceChangeKind.AdditionalDocumentChanged) 86else if (e.Kind is WorkspaceChangeKind.DocumentReloaded)
Handler\SourceGenerators\SourceGeneratorRefreshQueue.cs (5)
106if (e.Kind is WorkspaceChangeKind.SolutionChanged or WorkspaceChangeKind.SolutionAdded or WorkspaceChangeKind.SolutionRemoved or WorkspaceChangeKind.SolutionReloaded or WorkspaceChangeKind.SolutionCleared)
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.Remote.ServiceHub (3)
Host\RemoteWorkspace.cs (2)
299(IsAddingSolution(oldSolution, newSolution) ? WorkspaceChangeKind.SolutionAdded : WorkspaceChangeKind.SolutionChanged, projectId: null, documentId: null),
Services\LegacySolutionEvents\RemoteLegacySolutionEventsAggregationService.cs (1)
39WorkspaceChangeKind kind,
Microsoft.CodeAnalysis.Workspaces (107)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (6)
70private readonly WorkspaceChangeKind _documentChangedWorkspaceKind; 77WorkspaceChangeKind documentChangedWorkspaceKind) 542WorkspaceChangeKind addDocumentChangeKind, 544WorkspaceChangeKind removeDocumentChangeKind) 557WorkspaceChangeKind addDocumentChangeKind, 559WorkspaceChangeKind removeDocumentChangeKind,
Workspace\ProjectSystem\ProjectSystemProject.cs (9)
184documentChangedWorkspaceKind: WorkspaceChangeKind.DocumentChanged); 191documentChangedWorkspaceKind: WorkspaceChangeKind.AdditionalDocumentChanged); 198documentChangedWorkspaceKind: WorkspaceChangeKind.AnalyzerConfigDocumentChanged); 589WorkspaceChangeKind.DocumentAdded, 591WorkspaceChangeKind.DocumentRemoved); 597WorkspaceChangeKind.AdditionalDocumentAdded, 599WorkspaceChangeKind.AdditionalDocumentRemoved); 605WorkspaceChangeKind.AnalyzerConfigDocumentAdded, 607WorkspaceChangeKind.AnalyzerConfigDocumentRemoved);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (4)
171? (WorkspaceChangeKind.SolutionAdded, projectId: null, documentId: null) 172: (WorkspaceChangeKind.ProjectAdded, projectId, documentId: null); 272Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 464WorkspaceChangeKind.SolutionRemoved,
Workspace\ProjectSystem\SolutionChangeAccumulator.cs (12)
11/// keeps track of the right <see cref="CodeAnalysis.WorkspaceChangeKind"/> to raise when we are done. 17/// and <see cref="WorkspaceChangeKind.ProjectChanged"/> or 18/// <see cref="WorkspaceChangeKind.SolutionChanged"/> if we can't give a more precise type. 20private WorkspaceChangeKind? _workspaceChangeKind; 27public WorkspaceChangeKind WorkspaceChangeKind => _workspaceChangeKind!.Value; 32public void UpdateSolutionForDocumentAction(Solution newSolution, WorkspaceChangeKind changeKind, IEnumerable<DocumentId> documentIds) 58_workspaceChangeKind = WorkspaceChangeKind.ProjectChanged; 65_workspaceChangeKind = WorkspaceChangeKind.SolutionChanged; 75/// The same as <see cref="UpdateSolutionForDocumentAction(Solution, WorkspaceChangeKind, IEnumerable{DocumentId})" /> but also records 78public void UpdateSolutionForRemovedDocumentAction(Solution solution, WorkspaceChangeKind removeDocumentChangeKind, IEnumerable<DocumentId> documentIdsRemoved) 105_workspaceChangeKind = WorkspaceChangeKind.ProjectChanged; 110_workspaceChangeKind = WorkspaceChangeKind.SolutionChanged;
Workspace\Workspace.cs (48)
199/// <inheritdoc cref="SetCurrentSolution(Func{Solution, Solution}, Func{Solution, Solution, ValueTuple{WorkspaceChangeKind, ProjectId?, DocumentId?}}, Action{Solution, Solution}?, Action{Solution, Solution}?)"/> 202WorkspaceChangeKind changeKind, 231Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 251Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 585WorkspaceChangeKind.SolutionChanged); 649this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionCleared, oldSolution, newSolution); 775}, WorkspaceChangeKind.SolutionAdded); 791}, WorkspaceChangeKind.SolutionReloaded); 805WorkspaceChangeKind.SolutionRemoved, 816WorkspaceChangeKind.ProjectAdded, projectId: projectInfo.Id); 833}, WorkspaceChangeKind.ProjectReloaded, projectId); 849WorkspaceChangeKind.ProjectRemoved, projectId, 870=> SetCurrentSolution(oldSolution => oldSolution.WithProjectAssemblyName(projectId, assemblyName), WorkspaceChangeKind.ProjectChanged, projectId); 876=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 882=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputRefFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 892=> SetCurrentSolution(oldSolution => oldSolution.WithProjectName(projectId, name).WithProjectFilePath(projectId, filePath), WorkspaceChangeKind.ProjectChanged, projectId); 898=> SetCurrentSolution(oldSolution => oldSolution.WithProjectDefaultNamespace(projectId, defaultNamespace), WorkspaceChangeKind.ProjectChanged, projectId); 904=> SetCurrentSolution(oldSolution => oldSolution.WithProjectCompilationOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 910=> SetCurrentSolution(oldSolution => oldSolution.WithProjectParseOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 926}, WorkspaceChangeKind.ProjectChanged, projectId); 940}, WorkspaceChangeKind.ProjectChanged, projectId); 952}, WorkspaceChangeKind.ProjectChanged, projectId); 964}, WorkspaceChangeKind.ProjectChanged, projectId); 976}, WorkspaceChangeKind.ProjectChanged, projectId); 988}, WorkspaceChangeKind.ProjectChanged, projectId); 1000}, WorkspaceChangeKind.SolutionChanged); 1012}, WorkspaceChangeKind.SolutionChanged); 1019=> SetCurrentSolution(oldSolution => oldSolution.WithFallbackAnalyzerOptions(options), WorkspaceChangeKind.SolutionChanged); 1027=> SetCurrentSolution(oldSolution => oldSolution.WithHasAllInformation(projectId, hasAllInformation), WorkspaceChangeKind.ProjectChanged, projectId); 1033=> SetCurrentSolution(oldSolution => oldSolution.WithRunAnalyzers(projectId, runAnalyzers), WorkspaceChangeKind.ProjectChanged, projectId); 1042WorkspaceChangeKind.DocumentAdded, documentId: documentInfo.Id); 1058data.@this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.ProjectChanged, oldSolution, newSolution, projectId); 1070WorkspaceChangeKind.DocumentReloaded, documentId: documentId); 1086WorkspaceChangeKind.DocumentRemoved, documentId: documentId, 1134WorkspaceChangeKind.DocumentInfoChanged, documentId: documentId); 1150WorkspaceChangeKind.DocumentChanged, 1165WorkspaceChangeKind.AdditionalDocumentChanged, 1180WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1201WorkspaceChangeKind.DocumentChanged, 1216WorkspaceChangeKind.AdditionalDocumentChanged, 1231WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1255WorkspaceChangeKind changeKind, 1354WorkspaceChangeKind.DocumentChanged, documentId: documentId, 1371WorkspaceChangeKind.AdditionalDocumentAdded, documentId: documentId); 1387WorkspaceChangeKind.AdditionalDocumentRemoved, documentId: documentId, 1410WorkspaceChangeKind.AnalyzerConfigDocumentAdded, documentId: documentId); 1425WorkspaceChangeKind.AnalyzerConfigDocumentRemoved, documentId: documentId, 1441WorkspaceChangeKind.SolutionChanged);
Workspace\Workspace_Editor.cs (8)
423@this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); 521WorkspaceChangeKind.AdditionalDocumentChanged, 538WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 553WorkspaceChangeKind workspaceChangeKind, 699@this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId: documentId); // don't wait for this 721WorkspaceChangeKind.AdditionalDocumentChanged, 735WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 747WorkspaceChangeKind workspaceChangeKind,
Workspace\Workspace_Events.cs (1)
66protected Task RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind kind, Solution oldSolution, Solution newSolution, ProjectId projectId = null, DocumentId documentId = null)
Workspace\Workspace_SourceGeneration.cs (1)
54static (_, _) => (WorkspaceChangeKind.SolutionChanged, projectId: null, documentId: null),
Workspace\WorkspaceChangeEventArgs.cs (15)
21public WorkspaceChangeKind Kind { get; } 26/// <see cref="WorkspaceChangeKind.SolutionAdded"/> replaces the previous solution, which might be the empty 33/// and <see cref="NewSolution"/>. Note <see cref="WorkspaceChangeKind.SolutionRemoved"/> replaces the previous 40/// to a project (for example <see cref="WorkspaceChangeKind.SolutionReloaded"/>. Should be non-<see 43/// <item><see cref="WorkspaceChangeKind.ProjectAdded"/></item> 44/// <item><see cref="WorkspaceChangeKind.ProjectChanged"/></item> 45/// <item><see cref="WorkspaceChangeKind.ProjectReloaded"/></item> 46/// <item><see cref="WorkspaceChangeKind.ProjectRemoved"/></item> 53/// to a document (for example <see cref="WorkspaceChangeKind.ProjectAdded"/>. Should be non-<see 56/// <item><see cref="WorkspaceChangeKind.DocumentAdded"/></item> 57/// <item><see cref="WorkspaceChangeKind.DocumentChanged"/></item> 58/// <item><see cref="WorkspaceChangeKind.DocumentInfoChanged"/></item> 59/// <item><see cref="WorkspaceChangeKind.DocumentReloaded"/></item> 60/// <item><see cref="WorkspaceChangeKind.DocumentRemoved"/></item> 65public WorkspaceChangeEventArgs(WorkspaceChangeKind kind, Solution oldSolution, Solution newSolution, ProjectId? projectId = null, DocumentId? documentId = null)
Workspace\WorkspaceChangeKind.cs (3)
130public static bool IsValid(this WorkspaceChangeKind kind) 131=> kind is >= WorkspaceChangeKind.SolutionChanged and <= WorkspaceChangeKind.AnalyzerConfigDocumentChanged;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
VisualStudioMSBuildWorkspaceTests.cs (6)
2213var expectedEventKind = WorkspaceChangeKind.DocumentChanged; 2231Enum.GetName(typeof(WorkspaceChangeKind), expectedEventKind), 2243var expectedEventKind = WorkspaceChangeKind.DocumentChanged; 2267Enum.GetName(typeof(WorkspaceChangeKind), expectedEventKind),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (8)
Workspaces\TestWorkspace`1.cs (8)
122changeKind: WorkspaceChangeKind.SolutionChanged); 137changeKind: WorkspaceChangeKind.SolutionChanged); 528return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 537return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentAdded, oldSolution, newSolution, documentId: documentId); 544this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AdditionalDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 551this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AnalyzerConfigDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 558return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.ProjectChanged, oldSolution, newSolution, projectId); 568return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionChanged, oldSolution, newSolution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\SolutionTests.cs (2)
5854(_, _) => (WorkspaceChangeKind.SolutionAdded, null, null)); 5861(_, _) => (WorkspaceChangeKind.DocumentChanged, documentId1.ProjectId, documentId1));
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
591Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 615Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 635Assert.True(workspace.SetCurrentSolution(_ => originalAdditionalFile.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 666Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 693Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 722Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged));
WorkspaceTests\AdhocWorkspaceTests.cs (4)
425if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 458if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 492if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 523if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged
Microsoft.VisualStudio.LanguageServices (23)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (10)
82case WorkspaceChangeKind.DocumentChanged: 91case WorkspaceChangeKind.ProjectAdded: 92case WorkspaceChangeKind.ProjectChanged: 93case WorkspaceChangeKind.ProjectReloaded: 94case WorkspaceChangeKind.ProjectRemoved: 98case WorkspaceChangeKind.SolutionAdded: 99case WorkspaceChangeKind.SolutionChanged: 100case WorkspaceChangeKind.SolutionCleared: 101case WorkspaceChangeKind.SolutionReloaded: 102case WorkspaceChangeKind.SolutionRemoved:
Packaging\PackageInstallerServiceFactory.cs (9)
436case WorkspaceChangeKind.ProjectAdded: 437case WorkspaceChangeKind.ProjectChanged: 438case WorkspaceChangeKind.ProjectReloaded: 439case WorkspaceChangeKind.ProjectRemoved: 443case WorkspaceChangeKind.SolutionAdded: 444case WorkspaceChangeKind.SolutionChanged: 445case WorkspaceChangeKind.SolutionCleared: 446case WorkspaceChangeKind.SolutionReloaded: 447case WorkspaceChangeKind.SolutionRemoved:
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
29=> workspace.ProjectSystemProjectFactory.ApplyChangeToWorkspace(w => w.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged));
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
109if (e.Kind == WorkspaceChangeKind.SolutionChanged)
ValueTracking\ValueTrackingToolWindow.cs (2)
75if (e.Kind is WorkspaceChangeKind.SolutionCleared 76or WorkspaceChangeKind.SolutionRemoved)
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (6)
29Assert.Equal(WorkspaceChangeKind.DocumentAdded, change.Kind) 49Assert.Equal(WorkspaceChangeKind.ProjectChanged, change.Kind) 69Assert.Equal(WorkspaceChangeKind.AdditionalDocumentAdded, change.Kind) 89Assert.Equal(WorkspaceChangeKind.ProjectChanged, change.Kind) 117Assert.Equal(WorkspaceChangeKind.SolutionAdded, Assert.Single(Await workspaceChangeEvents.GetNewChangeEventsAsync()).Kind) 121Assert.Equal(WorkspaceChangeKind.SolutionRemoved, Assert.Single(Await workspaceChangeEvents.GetNewChangeEventsAsync()).Kind)
Roslyn.VisualStudio.Next.UnitTests (39)
Remote\SnapshotSerializationTests.cs (1)
68}, WorkspaceChangeKind.SolutionChanged);
Services\ServiceHubServicesTests.cs (30)
266workspace.SetCurrentSolution(Populate, WorkspaceChangeKind.SolutionChanged); 310}, WorkspaceChangeKind.SolutionChanged); 330}, WorkspaceChangeKind.SolutionChanged); 344}, WorkspaceChangeKind.SolutionChanged); 451Assert.True(localWorkspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 463Assert.True(localWorkspace.SetCurrentSolution(s => s.WithDocumentText(tempDocId, SourceText.From("// " + i)), WorkspaceChangeKind.SolutionChanged)); 755Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 789Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 927Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 936Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 978Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 987Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1019Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1028Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1062Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1071Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1114Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1124Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1167Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1177Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1220Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1230Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1265Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1275Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1310Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1319Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1353Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1362Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1558Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1561Assert.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\SolutionAssetCacheTests.cs (1)
108workspace.SetCurrentSolution(solution => solution.AddProject("Project", "Assembly", LanguageNames.CSharp).Solution, WorkspaceChangeKind.ProjectAdded);
Services\SolutionServiceTests.cs (3)
201Assert.True(workspace.SetCurrentSolution(s => SetSolutionProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged)); 236Assert.True(workspace.SetCurrentSolution(s => SetSolutionProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged)); 282Assert.True(workspace.SetCurrentSolution(s => SetProjectProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged));