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)
1513
/// will still throw if the solution contains changes that are not supported according to the <see cref="
CanApplyChange
(ApplyChangesKind)"/>
1517
/// <see cref="
CanApplyChange
(ApplyChangesKind)"/> method.</exception>
1655
if (!
CanApplyChange
(ApplyChangesKind.RemoveProject) && solutionChanges.GetRemovedProjects().Any())
1660
if (!
CanApplyChange
(ApplyChangesKind.AddProject) && solutionChanges.GetAddedProjects().Any())
1665
if (!
CanApplyChange
(ApplyChangesKind.AddSolutionAnalyzerReference) && solutionChanges.GetAddedAnalyzerReferences().Any())
1670
if (!
CanApplyChange
(ApplyChangesKind.RemoveSolutionAnalyzerReference) && solutionChanges.GetRemovedAnalyzerReferences().Any())
1686
if (!
CanApplyChange
(ApplyChangesKind.ChangeCompilationOptions) &&
1717
if (!
CanApplyChange
(ApplyChangesKind.ChangeParseOptions) &&
1724
if (!
CanApplyChange
(ApplyChangesKind.AddDocument) && projectChanges.GetAddedDocuments().Any())
1729
if (!
CanApplyChange
(ApplyChangesKind.RemoveDocument) && projectChanges.GetRemovedDocuments().Any())
1734
if (!
CanApplyChange
(ApplyChangesKind.ChangeDocumentInfo)
1742
if (!
CanApplyChange
(ApplyChangesKind.ChangeDocument) && changedDocumentIds.Length > 0)
1759
if (!
CanApplyChange
(ApplyChangesKind.AddAdditionalDocument) && projectChanges.GetAddedAdditionalDocuments().Any())
1764
if (!
CanApplyChange
(ApplyChangesKind.RemoveAdditionalDocument) && projectChanges.GetRemovedAdditionalDocuments().Any())
1769
if (!
CanApplyChange
(ApplyChangesKind.ChangeAdditionalDocument) && projectChanges.GetChangedAdditionalDocuments().Any())
1774
if (!
CanApplyChange
(ApplyChangesKind.AddAnalyzerConfigDocument) && projectChanges.GetAddedAnalyzerConfigDocuments().Any())
1779
if (!
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerConfigDocument) && projectChanges.GetRemovedAnalyzerConfigDocuments().Any())
1784
if (!
CanApplyChange
(ApplyChangesKind.ChangeAnalyzerConfigDocument) && projectChanges.GetChangedAnalyzerConfigDocuments().Any())
1789
if (!
CanApplyChange
(ApplyChangesKind.AddProjectReference) && projectChanges.GetAddedProjectReferences().Any())
1794
if (!
CanApplyChange
(ApplyChangesKind.RemoveProjectReference) && projectChanges.GetRemovedProjectReferences().Any())
1799
if (!
CanApplyChange
(ApplyChangesKind.AddMetadataReference) && projectChanges.GetAddedMetadataReferences().Any())
1804
if (!
CanApplyChange
(ApplyChangesKind.RemoveMetadataReference) && projectChanges.GetRemovedMetadataReferences().Any())
1809
if (!
CanApplyChange
(ApplyChangesKind.AddAnalyzerReference) && projectChanges.GetAddedAnalyzerReferences().Any())
1814
if (!
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerReference) && projectChanges.GetRemovedAnalyzerReferences().Any())
1824
/// This method is only called if <see cref="
CanApplyChange
" /> returns false for <see cref="ApplyChangesKind.ChangeCompilationOptions"/>.
1825
/// If <see cref="
CanApplyChange
" /> returns true, then that means all changes are allowed and this method does not need to be called.
1837
/// This method is only called if <see cref="
CanApplyChange
" /> returns false for <see cref="ApplyChangesKind.ChangeParseOptions"/>.
1838
/// If <see cref="
CanApplyChange
" /> returns true, then that means all changes are allowed and this method does not need to be called.
2056
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddProject));
2067
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveProject));
2082
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeCompilationOptions) ||
2100
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeParseOptions) ||
2113
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddProjectReference));
2124
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveProjectReference));
2135
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddMetadataReference));
2146
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveMetadataReference));
2157
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAnalyzerReference));
2168
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerReference));
2179
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddSolutionAnalyzerReference));
2190
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveSolutionAnalyzerReference));
2201
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddDocument));
2212
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveDocument));
2223
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeDocument));
2234
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeDocumentInfo));
2245
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAdditionalDocument));
2256
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAdditionalDocument));
2267
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeAdditionalDocument));
2278
Debug.Assert(
CanApplyChange
(ApplyChangesKind.AddAnalyzerConfigDocument));
2289
Debug.Assert(
CanApplyChange
(ApplyChangesKind.RemoveAnalyzerConfigDocument));
2300
Debug.Assert(
CanApplyChange
(ApplyChangesKind.ChangeAnalyzerConfigDocument));