11 overrides of CanApplyChange
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveWorkspace.cs (1)
40public override bool CanApplyChange(ApplyChangesKind feature)
Shared\Preview\PreviewWorkspace.cs (1)
40public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\MefTestWorkspace.cs (1)
28public override bool CanApplyChange(ApplyChangesKind feature)
Workspaces\TestWorkspace.cs (1)
288public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\AdhocWorkspace.cs (1)
31public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
269public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\TryApplyChangesTests.cs (1)
42public override bool CanApplyChange(ApplyChangesKind feature)
WorkspaceTests\WorkspaceTests.cs (1)
127public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
317public override bool CanApplyChange(ApplyChangesKind feature)
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
416public override bool CanApplyChange(ApplyChangesKind feature)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
446public override bool CanApplyChange(ApplyChangesKind feature)
68 references to CanApplyChange
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
117if (document != null && workspace != null && workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.CodeAnalysis.EditorFeatures (8)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
54workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (2)
102workspace.CanApplyChange(ApplyChangesKind.AddDocument) && 103workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
ExtractMethod\ExtractMethodCommandHandler.cs (1)
83!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) ||
Formatting\FormatCommandHandler.Paste.cs (1)
58!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
InlineRename\CommandHandlers\AbstractRenameCommandHandler_RenameHandler.cs (1)
127workspace.CanApplyChange(ApplyChangesKind.ChangeDocument) &&
NavigationBar\NavigationBarController_ModelComputation.cs (1)
75workspace.CanApplyChange(ApplyChangesKind.ChangeDocument),
Organizing\OrganizeDocumentCommandHandler.cs (1)
102if (!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (2)
Snippets\AbstractSnippetCommandHandler.cs (1)
237if (!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Snippets\CSharpSnippets\SnippetCommandHandler.cs (1)
75if (!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.cs (1)
92workspace.CanApplyChange(ApplyChangesKind.ChangeDocument);
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
IRazorDocumentOperationService.cs (1)
10/// document version of <see cref="Workspace.CanApplyChange(ApplyChangesKind)"/>
Microsoft.CodeAnalysis.Workspaces (53)
Workspace\Host\DocumentService\IDocumentOperationService.cs (1)
16/// document version of <see cref="Workspace.CanApplyChange(ApplyChangesKind)"/>
Workspace\Host\ISupportedChangesService.cs (2)
17/// <inheritdoc cref="Workspace.CanApplyChange"/> 49=> _workspace.CanApplyChange(kind);
Workspace\Workspace.cs (50)
1269/// will still throw if the solution contains changes that are not supported according to the <see cref="CanApplyChange(ApplyChangesKind)"/> 1273/// <see cref="CanApplyChange(ApplyChangesKind)"/> method.</exception> 1372if (!CanApplyChange(ApplyChangesKind.RemoveProject) && solutionChanges.GetRemovedProjects().Any()) 1377if (!CanApplyChange(ApplyChangesKind.AddProject) && solutionChanges.GetAddedProjects().Any()) 1382if (!CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any()) 1387if (!CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any()) 1403if (!CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) && 1434if (!CanApplyChange(ApplyChangesKind.ChangeParseOptions) && 1441if (!CanApplyChange(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any()) 1446if (!CanApplyChange(ApplyChangesKind.RemoveDocument) && projectChanges.GetRemovedDocuments().Any()) 1451if (!CanApplyChange(ApplyChangesKind.ChangeDocumentInfo) 1459if (!CanApplyChange(ApplyChangesKind.ChangeDocument) && changedDocumentIds.Length > 0) 1476if (!CanApplyChange(ApplyChangesKind.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any()) 1481if (!CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any()) 1486if (!CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any()) 1491if (!CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any()) 1496if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any()) 1501if (!CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any()) 1506if (!CanApplyChange(ApplyChangesKind.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any()) 1511if (!CanApplyChange(ApplyChangesKind.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any()) 1516if (!CanApplyChange(ApplyChangesKind.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any()) 1521if (!CanApplyChange(ApplyChangesKind.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any()) 1526if (!CanApplyChange(ApplyChangesKind.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any()) 1531if (!CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any()) 1541/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeCompilationOptions"/>. 1542/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 1554/// This method is only called if <see cref="CanApplyChange" /> returns false for <see cref="ApplyChangesKind.ChangeParseOptions"/>. 1555/// If <see cref="CanApplyChange" /> returns true, then that means all changes are allowed and this method does not need to be called. 1792Debug.Assert(CanApplyChange(ApplyChangesKind.AddProject)); 1803Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProject)); 1818Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeCompilationOptions) || 1836Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeParseOptions) || 1849Debug.Assert(CanApplyChange(ApplyChangesKind.AddProjectReference)); 1860Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveProjectReference)); 1871Debug.Assert(CanApplyChange(ApplyChangesKind.AddMetadataReference)); 1882Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveMetadataReference)); 1893Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerReference)); 1904Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerReference)); 1915Debug.Assert(CanApplyChange(ApplyChangesKind.AddSolutionAnalyzerReference)); 1926Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveSolutionAnalyzerReference)); 1937Debug.Assert(CanApplyChange(ApplyChangesKind.AddDocument)); 1948Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveDocument)); 1959Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocument)); 1970Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeDocumentInfo)); 1981Debug.Assert(CanApplyChange(ApplyChangesKind.AddAdditionalDocument)); 1992Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAdditionalDocument)); 2003Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAdditionalDocument)); 2014Debug.Assert(CanApplyChange(ApplyChangesKind.AddAnalyzerConfigDocument)); 2025Debug.Assert(CanApplyChange(ApplyChangesKind.RemoveAnalyzerConfigDocument)); 2036Debug.Assert(CanApplyChange(ApplyChangesKind.ChangeAnalyzerConfigDocument));
Microsoft.VisualStudio.LanguageServices (1)
Snippets\AbstractSnippetCommandHandler.cs (1)
265!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\SnippetCommandHandler.cs (1)
87!workspace.CanApplyChange(ApplyChangesKind.ChangeDocument))