1 write to Kind
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceChangeEventArgs.cs (1)
70this.Kind = kind;
49 references to Kind
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1343Assert.Equal(WorkspaceChangeKind.DocumentChanged, e.Kind);
Microsoft.CodeAnalysis.EditorFeatures (7)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
243if (args.Kind != WorkspaceChangeKind.ProjectChanged)
EditorConfigSettings\Aggregator\SettingsAggregator.cs (1)
34switch (e.Kind)
InlineRename\InlineRenameSession.cs (2)
391if (args.Kind != WorkspaceChangeKind.DocumentChanged) 395m["Kind"] = Enum.GetName(typeof(WorkspaceChangeEventArgs), args.Kind);
Remote\SolutionChecksumUpdater.cs (1)
135if (e.Kind == WorkspaceChangeKind.DocumentChanged)
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (1)
31if (e.Kind == WorkspaceChangeKind.ProjectChanged)
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
98service.OnWorkspaceChangedAsync(oldSolutionChecksum, newSolutionChecksum, args.Kind, args.ProjectId, args.DocumentId, cancellationToken),
Microsoft.CodeAnalysis.Features (10)
Diagnostics\BuildOnlyDiagnosticsService.cs (1)
39switch (e.Kind)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
236UnitTestingSolutionCrawlerLogger.LogWorkspaceEvent(_logAggregator, args.Kind); 239switch (args.Kind) 311throw ExceptionUtilities.UnexpectedValue(args.Kind);
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
22/// <param name="kind"><inheritdoc cref="WorkspaceChangeEventArgs.Kind"/></param>
SolutionCrawler\WorkCoordinator.cs (3)
195SolutionCrawlerLogger.LogWorkspaceEvent(_logAggregator, args.Kind); 198switch (args.Kind) 260throw ExceptionUtilities.UnexpectedValue(args.Kind);
Workspace\BackgroundParser.cs (1)
65switch (args.Kind)
Workspace\CompileTimeSolutionProvider.cs (1)
65if (e.Kind is WorkspaceChangeKind.SolutionCleared or WorkspaceChangeKind.SolutionRemoved)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
144if (e.DocumentId is not null && e.Kind is WorkspaceChangeKind.DocumentChanged)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2221Assert.Equal(expectedEventKind, args.Kind); 2251Assert.Equal(expectedEventKind, args.Kind);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
WorkspaceTests\AdhocWorkspaceTests.cs (4)
449if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 482if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 516if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged 547if (args.Kind == WorkspaceChangeKind.DocumentInfoChanged
Microsoft.VisualStudio.LanguageServices (10)
Implementation\VirtualMemoryNotificationListener.cs (1)
176if (e.Kind != WorkspaceChangeKind.SolutionAdded)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
80switch (e.Kind)
Packaging\PackageInstallerServiceFactory.cs (1)
431switch (e.Kind)
StackTraceExplorer\StackTraceExplorerViewModel.cs (1)
113if (e.Kind == WorkspaceChangeKind.SolutionChanged)
TableDataSource\AbstractTable.cs (2)
37switch (e.Kind) 67throw ExceptionUtilities.UnexpectedValue(e.Kind);
TableDataSource\OpenDocumentTracker.cs (1)
94switch (e.Kind)
TaskList\ExternalErrorDiagnosticUpdateSource.cs (2)
242switch (e.Kind) 289throw ExceptionUtilities.UnexpectedValue(e.Kind);
ValueTracking\ValueTrackingToolWindow.cs (1)
81if (e.Kind is WorkspaceChangeKind.SolutionCleared
Microsoft.VisualStudio.LanguageServices.Implementation (7)
CodeModel\ProjectCodeModelFactory.cs (1)
153switch (e.Kind)
SolutionExplorer\AnalyzerItem\AnalyzerItemSource.cs (1)
41switch (e.Kind)
SolutionExplorer\DiagnosticItem\BaseDiagnosticAndGeneratorItemSource.cs (4)
133if (e.Kind is WorkspaceChangeKind.SolutionCleared or 141if (e.Kind == WorkspaceChangeKind.ProjectRemoved) 145else if (e.Kind == WorkspaceChangeKind.ProjectChanged) 151switch (e.Kind)
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSource.cs (1)
89e.Kind == WorkspaceChangeKind.SolutionChanged)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\EditorVerifierInProcess.cs (1)
221codeActionLogger.Messages.Add($"{e.OldSolution.WorkspaceVersion} to {e.NewSolution.WorkspaceVersion}: {e.Kind} {e.DocumentId}");
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)