提交 70e280dd 编写于 作者: M Manish Vasani

Revert the change to DesignerAttributeIncrementalAnalyzer to bail out for...

Revert the change to DesignerAttributeIncrementalAnalyzer to bail out for active file analysis scope.
上级 3f20333e
......@@ -11,7 +11,6 @@
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Microsoft.CodeAnalysis.Shared.Options;
using Microsoft.CodeAnalysis.Shared.TestHooks;
using Microsoft.CodeAnalysis.SolutionCrawler;
using Microsoft.CodeAnalysis.Versions;
......@@ -76,9 +75,7 @@ public async Task AnalyzeDocumentAsync(Document document, SyntaxNode bodyOpt, In
cancellationToken.ThrowIfCancellationRequested();
// TODO: Update the logic for this analyzer to work at file level instead of project level.
if (!document.Project.Solution.Workspace.Options.GetOption(InternalFeatureOnOffOptions.DesignerAttributes) ||
SolutionCrawlerOptions.GetBackgroundAnalysisScope(document.Project) == BackgroundAnalysisScope.ActiveFile)
if (!document.Project.Solution.Workspace.Options.GetOption(InternalFeatureOnOffOptions.DesignerAttributes))
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册