12 overrides of CanApplyChange
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveWorkspace.cs (1)
24public override bool CanApplyChange(ApplyChangesKind feature)
Shared\Preview\PreviewWorkspace.cs (1)
60public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\MefTestWorkspace.cs (1)
23public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\SemanticSearchWorkspace.cs (1)
26public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\AdhocWorkspace.cs (1)
26public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
271public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
334public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\TryApplyChangesTests.cs (1)
43public override bool CanApplyChange(ApplyChangesKind feature)
WorkspaceTests\WorkspaceTests.cs (1)
124public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
322public override bool CanApplyChange(ApplyChangesKind feature)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
354public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
430public override bool CanApplyChange(ApplyChangesKind feature)
66 references to CanApplyChange
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TypeCharCommand.cs (1)
50if (document != null && document.Project.Solution.Workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.CodeAnalysis.EditorFeatures (8)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
46workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (2)
96workspace.CanApplyChange(ApplyChangesKind.AddDocument) && 97workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
ExtractMethod\ExtractMethodCommandHandler.cs (1)
72!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) ||
Formatting\FormatCommandHandler.Paste.cs (1)
53!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
130workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
NavigationBar\NavigationBarController_ModelComputation.cs (1)
135workspace.CanApplyChange(ApplyChangesKind.ChangeDocument),
Organizing\OrganizeDocumentCommandHandler.cs (1)
77if (!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.cs (1)
91workspace.CanApplyChange(ApplyChangesKind.ChangeDocument);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
IRazorDocumentOperationService.cs (1)
10/// document version of <see cref="Workspace.CanApplyChange(ApplyChangesKind)"/>
Microsoft.CodeAnalysis.Workspaces (53)
Workspace\Host\DocumentService\IDocumentOperationService.cs (1)
14/// document version of <see cref="Workspace.CanApplyChange(ApplyChangesKind)"/>
Workspace\Host\ISupportedChangesService.cs (2)
17/// <inheritdoc cref="Workspace.CanApplyChange"/> 42=> workspace.CanApplyChange(kind);
Workspace\Workspace.cs (50)
1548/// will still throw if the solution contains changes that are not supported according to the <see cref="CanApplyChange(ApplyChangesKind)"/> 1552/// <see cref="CanApplyChange(ApplyChangesKind)"/> method.</exception> 1690if (!CanApplyChange(ApplyChangesKind.RemoveProject) && solutionChanges.GetRemovedProjects().Any()) 1695if (!CanApplyChange(ApplyChangesKind.AddProject) && solutionChanges.GetAddedProjects().Any()) 1700if (!CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any()) 1705if (!CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any()) 1721if (!CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) && 1752if (!CanApplyChange(ApplyChangesKind.ChangeParseOptions) && 1759if (!CanApplyChange(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any()) 1764if (!CanApplyChange(ApplyChangesKind.RemoveDocument) && projectChanges.GetRemovedDocuments().Any()) 1769if (!CanApplyChange(ApplyChangesKind.ChangeDocumentInfo) 1777if (!CanApplyChange(ApplyChangesKind.ChangeDocument) && changedDocumentIds.Length > 0) 1794if (!CanApplyChange(ApplyChangesKind.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any()) 1799if (!CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any()) 1804if (!CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any()) 1809if (!CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any()) 1814if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any()) 1819if (!CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any()) 1824if (!CanApplyChange(ApplyChangesKind.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any()) 1829if (!CanApplyChange(ApplyChangesKind.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any()) 1834if (!CanApplyChange(ApplyChangesKind.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any()) 1839if (!CanApplyChange(ApplyChangesKind.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any()) 1844if (!CanApplyChange(ApplyChangesKind.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any()) 1849if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any()) 1859/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeCompilationOptions"/>. 1860/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 1872/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeParseOptions"/>. 1873/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 2091Debug.Assert(CanApplyChange(ApplyChangesKind.AddProject)); 2102Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProject)); 2117Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) || 2135Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeParseOptions) || 2148Debug.Assert(CanApplyChange(ApplyChangesKind.AddProjectReference)); 2159Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProjectReference)); 2170Debug.Assert(CanApplyChange(ApplyChangesKind.AddMetadataReference)); 2181Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveMetadataReference)); 2192Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerReference)); 2203Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference)); 2214Debug.Assert(CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference)); 2225Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference)); 2236Debug.Assert(CanApplyChange(ApplyChangesKind.AddDocument)); 2247Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveDocument)); 2258Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocument)); 2269Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocumentInfo)); 2280Debug.Assert(CanApplyChange(ApplyChangesKind.AddAdditionalDocument)); 2291Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument)); 2302Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument)); 2313Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument)); 2324Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument)); 2335Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument));
Microsoft.VisualStudio.LanguageServices (1)
Snippets\AbstractSnippetCommandHandler.cs (1)
244!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\SnippetCommandHandler.cs (1)
72!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))