12 overrides of CanApplyChange
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveWorkspace.cs (1)
24public override bool CanApplyChange(ApplyChangesKind feature)
Shared\Preview\PreviewWorkspace.cs (1)
34public 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)
19public 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)
330public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\TryApplyChangesTests.cs (1)
42public 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)
416public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
430public override bool CanApplyChange(ApplyChangesKind feature)
64 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)
131workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
NavigationBar\NavigationBarController_ModelComputation.cs (1)
135workspace.CanApplyChange(ApplyChangesKind.ChangeDocument),
Organizing\OrganizeDocumentCommandHandler.cs (1)
78if (!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> 1692if (!CanApplyChange(ApplyChangesKind.RemoveProject) && solutionChanges.GetRemovedProjects().Any()) 1697if (!CanApplyChange(ApplyChangesKind.AddProject) && solutionChanges.GetAddedProjects().Any()) 1702if (!CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any()) 1707if (!CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any()) 1723if (!CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) && 1754if (!CanApplyChange(ApplyChangesKind.ChangeParseOptions) && 1761if (!CanApplyChange(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any()) 1766if (!CanApplyChange(ApplyChangesKind.RemoveDocument) && projectChanges.GetRemovedDocuments().Any()) 1771if (!CanApplyChange(ApplyChangesKind.ChangeDocumentInfo) 1779if (!CanApplyChange(ApplyChangesKind.ChangeDocument) && changedDocumentIds.Length > 0) 1796if (!CanApplyChange(ApplyChangesKind.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any()) 1801if (!CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any()) 1806if (!CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any()) 1811if (!CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any()) 1816if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any()) 1821if (!CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any()) 1826if (!CanApplyChange(ApplyChangesKind.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any()) 1831if (!CanApplyChange(ApplyChangesKind.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any()) 1836if (!CanApplyChange(ApplyChangesKind.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any()) 1841if (!CanApplyChange(ApplyChangesKind.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any()) 1846if (!CanApplyChange(ApplyChangesKind.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any()) 1851if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any()) 1861/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeCompilationOptions"/>. 1862/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 1874/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeParseOptions"/>. 1875/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 2093Debug.Assert(CanApplyChange(ApplyChangesKind.AddProject)); 2104Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProject)); 2119Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) || 2137Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeParseOptions) || 2150Debug.Assert(CanApplyChange(ApplyChangesKind.AddProjectReference)); 2161Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProjectReference)); 2172Debug.Assert(CanApplyChange(ApplyChangesKind.AddMetadataReference)); 2183Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveMetadataReference)); 2194Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerReference)); 2205Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference)); 2216Debug.Assert(CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference)); 2227Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference)); 2238Debug.Assert(CanApplyChange(ApplyChangesKind.AddDocument)); 2249Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveDocument)); 2260Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocument)); 2271Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocumentInfo)); 2282Debug.Assert(CanApplyChange(ApplyChangesKind.AddAdditionalDocument)); 2293Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument)); 2304Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument)); 2315Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument)); 2326Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument)); 2337Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument));