4 overrides of CanApplyChange
dotnet-format (1)
Workspaces\FolderWorkspace.cs (1)
46
public override bool
CanApplyChange
(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\SemanticSearchWorkspace.cs (1)
26
public override bool
CanApplyChange
(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\AdhocWorkspace.cs (1)
26
public override bool
CanApplyChange
(ApplyChangesKind feature)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildWorkspace.cs (1)
278
public override bool
CanApplyChange
(ApplyChangesKind feature)
53 references to CanApplyChange
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)
1516
/// will still throw if the solution contains changes that are not supported according to the <see cref="
CanApplyChange
(ApplyChangesKind)"/>
1520
/// <see cref="
CanApplyChange
(ApplyChangesKind)"/> method.</exception>
1658
if (!
CanApplyChange
(ApplyChangesKind.RemoveProject) && solutionChanges.GetRemovedProjects().Any())
1663
if (!
CanApplyChange
(ApplyChangesKind.AddProject) && solutionChanges.GetAddedProjects().Any())
1668
if (!
CanApplyChange
(ApplyChangesKind.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any())
1673
if (!
CanApplyChange
(ApplyChangesKind.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any())
1689
if (!
CanApplyChange
(ApplyChangesKind.ChangeCompilationOptions) &&
1720
if (!
CanApplyChange
(ApplyChangesKind.ChangeParseOptions) &&
1727
if (!
CanApplyChange
(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any())
1732
if (!
CanApplyChange
(ApplyChangesKind.RemoveDocument) && projectChanges.GetRemovedDocuments().Any())
1737
if (!
CanApplyChange
(ApplyChangesKind.ChangeDocumentInfo)
1745
if (!
CanApplyChange
(ApplyChangesKind.ChangeDocument) && changedDocumentIds.Length > 0)
1762
if (!
CanApplyChange
(ApplyChangesKind.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any())
1767
if (!
CanApplyChange
(ApplyChangesKind.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any())
1772
if (!
CanApplyChange
(ApplyChangesKind.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any())
1777
if (!
CanApplyChange
(ApplyChangesKind.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any())
1782
if (!
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any())
1787
if (!
CanApplyChange
(ApplyChangesKind.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any())
1792
if (!
CanApplyChange
(ApplyChangesKind.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any())
1797
if (!
CanApplyChange
(ApplyChangesKind.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any())
1802
if (!
CanApplyChange
(ApplyChangesKind.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any())
1807
if (!
CanApplyChange
(ApplyChangesKind.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any())
1812
if (!
CanApplyChange
(ApplyChangesKind.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any())
1817
if (!
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any())
1827
/// This method is only called if <see cref="
CanApplyChange
" /> returns false for <see cref="ApplyChangesKind.ChangeCompilationOptions"/>.
1828
/// If <see cref="
CanApplyChange
" /> returns true, then that means all changes are allowed and this method does not need to be called.
1840
/// This method is only called if <see cref="
CanApplyChange
" /> returns false for <see cref="ApplyChangesKind.ChangeParseOptions"/>.
1841
/// If <see cref="
CanApplyChange
" /> returns true, then that means all changes are allowed and this method does not need to be called.
2059
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddProject));
2070
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveProject));
2085
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeCompilationOptions) ||
2103
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeParseOptions) ||
2116
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddProjectReference));
2127
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveProjectReference));
2138
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddMetadataReference));
2149
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveMetadataReference));
2160
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAnalyzerReference));
2171
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerReference));
2182
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddSolutionAnalyzerReference));
2193
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveSolutionAnalyzerReference));
2204
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddDocument));
2215
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveDocument));
2226
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeDocument));
2237
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeDocumentInfo));
2248
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAdditionalDocument));
2259
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAdditionalDocument));
2270
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeAdditionalDocument));
2281
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAnalyzerConfigDocument));
2292
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerConfigDocument));
2303
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeAnalyzerConfigDocument));