262 references to WorkspaceChangeKind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (14)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (34)
Microsoft.CodeAnalysis.Features.UnitTests (2)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.Workspaces (107)
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,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
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)
Microsoft.VisualStudio.LanguageServices (24)
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Roslyn.VisualStudio.Next.UnitTests (35)
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));