267 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)
1414Assert.Equal(WorkspaceChangeKind.DocumentChanged, e.Kind);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1065workspace.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)
54case WorkspaceChangeKind.SolutionChanged: 55case WorkspaceChangeKind.SolutionAdded: 56case WorkspaceChangeKind.SolutionRemoved: 57case WorkspaceChangeKind.SolutionCleared: 58case WorkspaceChangeKind.SolutionReloaded: 59case WorkspaceChangeKind.ProjectAdded: 60case WorkspaceChangeKind.ProjectRemoved: 61case WorkspaceChangeKind.ProjectChanged:
Interactive\InteractiveSession.cs (1)
246}, WorkspaceChangeKind.SolutionChanged);
Interactive\InteractiveWorkspace.cs (1)
69SetCurrentSolution(solution => emptySolution.WithAnalyzerReferences(solution.AnalyzerReferences), WorkspaceChangeKind.SolutionCleared);
Remote\SolutionChecksumUpdater.cs (1)
146if (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)
256Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionAdded));
Microsoft.CodeAnalysis.Features (34)
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (4)
68case WorkspaceChangeKind.SolutionAdded: 69case WorkspaceChangeKind.SolutionCleared: 70case WorkspaceChangeKind.SolutionReloaded: 71case 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)
24private readonly CountLogAggregator<WorkspaceChangeKind> _logAggregator = new(); 138case WorkspaceChangeKind.SolutionAdded: 142case WorkspaceChangeKind.SolutionChanged: 143case WorkspaceChangeKind.SolutionReloaded: 147case WorkspaceChangeKind.SolutionCleared: 148case WorkspaceChangeKind.SolutionRemoved: 152case WorkspaceChangeKind.ProjectAdded: 157case WorkspaceChangeKind.ProjectChanged: 158case WorkspaceChangeKind.ProjectReloaded: 163case WorkspaceChangeKind.ProjectRemoved: 168case WorkspaceChangeKind.DocumentAdded: 173case WorkspaceChangeKind.DocumentReloaded: 174case WorkspaceChangeKind.DocumentChanged: 179case WorkspaceChangeKind.DocumentRemoved: 184case WorkspaceChangeKind.AdditionalDocumentAdded: 185case WorkspaceChangeKind.AdditionalDocumentRemoved: 186case WorkspaceChangeKind.AdditionalDocumentChanged: 187case WorkspaceChangeKind.AdditionalDocumentReloaded: 188case WorkspaceChangeKind.AnalyzerConfigDocumentAdded: 189case WorkspaceChangeKind.AnalyzerConfigDocumentRemoved: 190case WorkspaceChangeKind.AnalyzerConfigDocumentChanged: 191case 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)
82w.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged);
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\Options\SolutionAnalyzerConfigOptionsUpdater.cs (1)
50_ = ((Workspace)target).SetCurrentSolution(UpdateOptions, changeKind: WorkspaceChangeKind.SolutionChanged);
Handler\AbstractRefreshQueue.cs (1)
80if (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)
102if (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)
300(IsAddingSolution(oldSolution, newSolution) ? WorkspaceChangeKind.SolutionAdded : WorkspaceChangeKind.SolutionChanged, projectId: null, documentId: null),
Services\LegacySolutionEvents\RemoteLegacySolutionEventsAggregationService.cs (1)
43WorkspaceChangeKind 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)
182documentChangedWorkspaceKind: WorkspaceChangeKind.DocumentChanged); 189documentChangedWorkspaceKind: WorkspaceChangeKind.AdditionalDocumentChanged); 196documentChangedWorkspaceKind: WorkspaceChangeKind.AnalyzerConfigDocumentChanged); 587WorkspaceChangeKind.DocumentAdded, 589WorkspaceChangeKind.DocumentRemoved); 595WorkspaceChangeKind.AdditionalDocumentAdded, 597WorkspaceChangeKind.AdditionalDocumentRemoved); 603WorkspaceChangeKind.AnalyzerConfigDocumentAdded, 605WorkspaceChangeKind.AnalyzerConfigDocumentRemoved);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (4)
172? (WorkspaceChangeKind.SolutionAdded, projectId: null, documentId: null) 173: (WorkspaceChangeKind.ProjectAdded, projectId, documentId: null); 273Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 465WorkspaceChangeKind.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)
191/// <inheritdoc cref="SetCurrentSolution(Func{Solution, Solution}, Func{Solution, Solution, ValueTuple{WorkspaceChangeKind, ProjectId?, DocumentId?}}, Action{Solution, Solution}?, Action{Solution, Solution}?)"/> 194WorkspaceChangeKind changeKind, 223Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 243Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 577WorkspaceChangeKind.SolutionChanged); 631this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionCleared, oldSolution, newSolution); 735}, WorkspaceChangeKind.SolutionAdded); 751}, WorkspaceChangeKind.SolutionReloaded); 765WorkspaceChangeKind.SolutionRemoved, 776WorkspaceChangeKind.ProjectAdded, projectId: projectInfo.Id); 793}, WorkspaceChangeKind.ProjectReloaded, projectId); 809WorkspaceChangeKind.ProjectRemoved, projectId, 830=> SetCurrentSolution(oldSolution => oldSolution.WithProjectAssemblyName(projectId, assemblyName), WorkspaceChangeKind.ProjectChanged, projectId); 836=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 842=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputRefFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 852=> SetCurrentSolution(oldSolution => oldSolution.WithProjectName(projectId, name).WithProjectFilePath(projectId, filePath), WorkspaceChangeKind.ProjectChanged, projectId); 858=> SetCurrentSolution(oldSolution => oldSolution.WithProjectDefaultNamespace(projectId, defaultNamespace), WorkspaceChangeKind.ProjectChanged, projectId); 864=> SetCurrentSolution(oldSolution => oldSolution.WithProjectCompilationOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 870=> SetCurrentSolution(oldSolution => oldSolution.WithProjectParseOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 886}, WorkspaceChangeKind.ProjectChanged, projectId); 900}, WorkspaceChangeKind.ProjectChanged, projectId); 912}, WorkspaceChangeKind.ProjectChanged, projectId); 924}, WorkspaceChangeKind.ProjectChanged, projectId); 936}, WorkspaceChangeKind.ProjectChanged, projectId); 948}, WorkspaceChangeKind.ProjectChanged, projectId); 960}, WorkspaceChangeKind.SolutionChanged); 972}, WorkspaceChangeKind.SolutionChanged); 979=> SetCurrentSolution(oldSolution => oldSolution.WithFallbackAnalyzerOptions(options), WorkspaceChangeKind.SolutionChanged); 987=> SetCurrentSolution(oldSolution => oldSolution.WithHasAllInformation(projectId, hasAllInformation), WorkspaceChangeKind.ProjectChanged, projectId); 993=> SetCurrentSolution(oldSolution => oldSolution.WithRunAnalyzers(projectId, runAnalyzers), WorkspaceChangeKind.ProjectChanged, projectId); 1002WorkspaceChangeKind.DocumentAdded, documentId: documentInfo.Id); 1018data.@this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.ProjectChanged, oldSolution, newSolution, projectId); 1030WorkspaceChangeKind.DocumentReloaded, documentId: documentId); 1046WorkspaceChangeKind.DocumentRemoved, documentId: documentId, 1094WorkspaceChangeKind.DocumentInfoChanged, documentId: documentId); 1110WorkspaceChangeKind.DocumentChanged, 1125WorkspaceChangeKind.AdditionalDocumentChanged, 1140WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1161WorkspaceChangeKind.DocumentChanged, 1176WorkspaceChangeKind.AdditionalDocumentChanged, 1191WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1215WorkspaceChangeKind changeKind, 1314WorkspaceChangeKind.DocumentChanged, documentId: documentId, 1331WorkspaceChangeKind.AdditionalDocumentAdded, documentId: documentId); 1347WorkspaceChangeKind.AdditionalDocumentRemoved, documentId: documentId, 1370WorkspaceChangeKind.AnalyzerConfigDocumentAdded, documentId: documentId); 1385WorkspaceChangeKind.AnalyzerConfigDocumentRemoved, documentId: documentId, 1401WorkspaceChangeKind.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)
45protected Task RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind kind, Solution oldSolution, Solution newSolution, ProjectId projectId = null, DocumentId documentId = null)
Workspace\Workspace_SourceGeneration.cs (1)
53static (_, _) => (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)
132public static bool IsValid(this WorkspaceChangeKind kind) 133=> kind is >= WorkspaceChangeKind.SolutionChanged and <= WorkspaceChangeKind.AnalyzerConfigDocumentChanged;
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
VisualStudioMSBuildWorkspaceTests.cs (6)
2228var expectedEventKind = WorkspaceChangeKind.DocumentChanged; 2246Enum.GetName(typeof(WorkspaceChangeKind), expectedEventKind), 2258var expectedEventKind = WorkspaceChangeKind.DocumentChanged; 2282Enum.GetName(typeof(WorkspaceChangeKind), expectedEventKind),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (8)
Workspaces\TestWorkspace`1.cs (8)
129changeKind: WorkspaceChangeKind.SolutionChanged); 144changeKind: WorkspaceChangeKind.SolutionChanged); 549return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 558return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.DocumentAdded, oldSolution, newSolution, documentId: documentId); 565this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AdditionalDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 572this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.AnalyzerConfigDocumentChanged, oldSolution, newSolution, documentId.ProjectId, documentId); 579return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.ProjectChanged, oldSolution, newSolution, projectId); 589return this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionChanged, oldSolution, newSolution);
Microsoft.CodeAnalysis.Workspaces.UnitTests (12)
SolutionTests\SolutionTests.cs (2)
5821(_, _) => (WorkspaceChangeKind.SolutionAdded, null, null)); 5828(_, _) => (WorkspaceChangeKind.DocumentChanged, documentId1.ProjectId, documentId1));
SolutionTests\SolutionWithSourceGeneratorTests.cs (6)
592Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 616Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 636Assert.True(workspace.SetCurrentSolution(_ => originalAdditionalFile.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 667Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 694Assert.True(workspace.SetCurrentSolution(_ => project.Solution, WorkspaceChangeKind.SolutionChanged)); 723Assert.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 (24)
Implementation\VirtualMemoryNotificationListener.cs (1)
175if (e.Kind != WorkspaceChangeKind.SolutionAdded)
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)
435case WorkspaceChangeKind.ProjectAdded: 436case WorkspaceChangeKind.ProjectChanged: 437case WorkspaceChangeKind.ProjectReloaded: 438case WorkspaceChangeKind.ProjectRemoved: 442case WorkspaceChangeKind.SolutionAdded: 443case WorkspaceChangeKind.SolutionChanged: 444case WorkspaceChangeKind.SolutionCleared: 445case WorkspaceChangeKind.SolutionReloaded: 446case WorkspaceChangeKind.SolutionRemoved:
ProjectSystem\VisualStudioWorkspaceImpl.SolutionAnalyzerSetterService.cs (1)
29=> workspace.ProjectSystemProjectFactory.ApplyChangeToWorkspace(w => w.SetCurrentSolution(s => s.WithAnalyzerReferences(references), WorkspaceChangeKind.SolutionChanged));
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
110if (e.Kind == WorkspaceChangeKind.SolutionChanged)
ValueTracking\ValueTrackingToolWindow.cs (2)
76if (e.Kind is WorkspaceChangeKind.SolutionCleared 77or 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 (35)
Remote\SnapshotSerializationTests.cs (1)
68}, WorkspaceChangeKind.SolutionChanged);
Services\ServiceHubServicesTests.cs (30)
254workspace.SetCurrentSolution(Populate, WorkspaceChangeKind.SolutionChanged); 298}, WorkspaceChangeKind.SolutionChanged); 318}, WorkspaceChangeKind.SolutionChanged); 332}, WorkspaceChangeKind.SolutionChanged); 439Assert.True(localWorkspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 451Assert.True(localWorkspace.SetCurrentSolution(s => s.WithDocumentText(tempDocId, SourceText.From("// " + i)), WorkspaceChangeKind.SolutionChanged)); 743Assert.True(workspace.SetCurrentSolution(_ => solution, WorkspaceChangeKind.SolutionChanged)); 777Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 915Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 924Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 966Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 975Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1007Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1016Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1050Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1059Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1102Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1112Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1155Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1165Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1208Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1218Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1253Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1263Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1298Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1307Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1341Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1350Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1546Assert.True(workspace.SetCurrentSolution(_ => tempDoc.Project.Solution, WorkspaceChangeKind.SolutionChanged)); 1549Assert.True(workspace.SetCurrentSolution(_ => noCompilationProject.Solution, WorkspaceChangeKind.SolutionChanged));
Services\SolutionAssetCacheTests.cs (1)
108workspace.SetCurrentSolution(solution => solution.AddProject("Project", "Assembly", LanguageNames.CSharp).Solution, WorkspaceChangeKind.ProjectAdded);
Services\SolutionServiceTests.cs (3)
202Assert.True(workspace.SetCurrentSolution(s => SetSolutionProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged)); 237Assert.True(workspace.SetCurrentSolution(s => SetSolutionProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged)); 283Assert.True(workspace.SetCurrentSolution(s => SetProjectProperties(s, version: 0), WorkspaceChangeKind.SolutionChanged));