267 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 (10)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.Workspaces (107)
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,
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));