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)
261}, 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)
25private readonly CountLogAggregator<WorkspaceChangeKind> _logAggregator = new(); 154case WorkspaceChangeKind.SolutionAdded: 158case WorkspaceChangeKind.SolutionChanged: 159case WorkspaceChangeKind.SolutionReloaded: 163case WorkspaceChangeKind.SolutionCleared: 164case WorkspaceChangeKind.SolutionRemoved: 168case WorkspaceChangeKind.ProjectAdded: 173case WorkspaceChangeKind.ProjectChanged: 174case WorkspaceChangeKind.ProjectReloaded: 179case WorkspaceChangeKind.ProjectRemoved: 184case WorkspaceChangeKind.DocumentAdded: 189case WorkspaceChangeKind.DocumentReloaded: 190case WorkspaceChangeKind.DocumentChanged: 195case WorkspaceChangeKind.DocumentRemoved: 200case WorkspaceChangeKind.AdditionalDocumentAdded: 201case WorkspaceChangeKind.AdditionalDocumentRemoved: 202case WorkspaceChangeKind.AdditionalDocumentChanged: 203case WorkspaceChangeKind.AdditionalDocumentReloaded: 204case WorkspaceChangeKind.AnalyzerConfigDocumentAdded: 205case WorkspaceChangeKind.AnalyzerConfigDocumentRemoved: 206case WorkspaceChangeKind.AnalyzerConfigDocumentChanged: 207case 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)
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)
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)
201/// <inheritdoc cref="SetCurrentSolution(Func{Solution, Solution}, Func{Solution, Solution, ValueTuple{WorkspaceChangeKind, ProjectId?, DocumentId?}}, Action{Solution, Solution}?, Action{Solution, Solution}?)"/> 204WorkspaceChangeKind changeKind, 233Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 253Func<Solution, Solution, (WorkspaceChangeKind changeKind, ProjectId? projectId, DocumentId? documentId)> changeKind, 587WorkspaceChangeKind.SolutionChanged); 651this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.SolutionCleared, oldSolution, newSolution); 777}, WorkspaceChangeKind.SolutionAdded); 793}, WorkspaceChangeKind.SolutionReloaded); 807WorkspaceChangeKind.SolutionRemoved, 818WorkspaceChangeKind.ProjectAdded, projectId: projectInfo.Id); 835}, WorkspaceChangeKind.ProjectReloaded, projectId); 851WorkspaceChangeKind.ProjectRemoved, projectId, 872=> SetCurrentSolution(oldSolution => oldSolution.WithProjectAssemblyName(projectId, assemblyName), WorkspaceChangeKind.ProjectChanged, projectId); 878=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 884=> SetCurrentSolution(oldSolution => oldSolution.WithProjectOutputRefFilePath(projectId, outputFilePath), WorkspaceChangeKind.ProjectChanged, projectId); 894=> SetCurrentSolution(oldSolution => oldSolution.WithProjectName(projectId, name).WithProjectFilePath(projectId, filePath), WorkspaceChangeKind.ProjectChanged, projectId); 900=> SetCurrentSolution(oldSolution => oldSolution.WithProjectDefaultNamespace(projectId, defaultNamespace), WorkspaceChangeKind.ProjectChanged, projectId); 906=> SetCurrentSolution(oldSolution => oldSolution.WithProjectCompilationOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 912=> SetCurrentSolution(oldSolution => oldSolution.WithProjectParseOptions(projectId, options), WorkspaceChangeKind.ProjectChanged, projectId); 928}, WorkspaceChangeKind.ProjectChanged, projectId); 942}, WorkspaceChangeKind.ProjectChanged, projectId); 954}, WorkspaceChangeKind.ProjectChanged, projectId); 966}, WorkspaceChangeKind.ProjectChanged, projectId); 978}, WorkspaceChangeKind.ProjectChanged, projectId); 990}, WorkspaceChangeKind.ProjectChanged, projectId); 1002}, WorkspaceChangeKind.SolutionChanged); 1014}, WorkspaceChangeKind.SolutionChanged); 1021=> SetCurrentSolution(oldSolution => oldSolution.WithFallbackAnalyzerOptions(options), WorkspaceChangeKind.SolutionChanged); 1029=> SetCurrentSolution(oldSolution => oldSolution.WithHasAllInformation(projectId, hasAllInformation), WorkspaceChangeKind.ProjectChanged, projectId); 1035=> SetCurrentSolution(oldSolution => oldSolution.WithRunAnalyzers(projectId, runAnalyzers), WorkspaceChangeKind.ProjectChanged, projectId); 1044WorkspaceChangeKind.DocumentAdded, documentId: documentInfo.Id); 1060data.@this.RaiseWorkspaceChangedEventAsync(WorkspaceChangeKind.ProjectChanged, oldSolution, newSolution, projectId); 1072WorkspaceChangeKind.DocumentReloaded, documentId: documentId); 1088WorkspaceChangeKind.DocumentRemoved, documentId: documentId, 1136WorkspaceChangeKind.DocumentInfoChanged, documentId: documentId); 1152WorkspaceChangeKind.DocumentChanged, 1167WorkspaceChangeKind.AdditionalDocumentChanged, 1182WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1203WorkspaceChangeKind.DocumentChanged, 1218WorkspaceChangeKind.AdditionalDocumentChanged, 1233WorkspaceChangeKind.AnalyzerConfigDocumentChanged, 1257WorkspaceChangeKind changeKind, 1356WorkspaceChangeKind.DocumentChanged, documentId: documentId, 1373WorkspaceChangeKind.AdditionalDocumentAdded, documentId: documentId); 1389WorkspaceChangeKind.AdditionalDocumentRemoved, documentId: documentId, 1412WorkspaceChangeKind.AnalyzerConfigDocumentAdded, documentId: documentId); 1427WorkspaceChangeKind.AnalyzerConfigDocumentRemoved, documentId: documentId, 1443WorkspaceChangeKind.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));