提交 262abdd9 编写于 作者: M Manish Vasani

Revert an unnecessary change - we already handle the bail out for non-active...

Revert an unnecessary change - we already handle the bail out for non-active files for active file analysis scope further in the code path
上级 347f8e61
......@@ -85,8 +85,7 @@ private void OnWorkspaceChanged(object sender, WorkspaceChangeEventArgs args)
// this consumed around 2%-3% of the trace after some other optimizations I did. Most of that
// was actually walking the documents list since this was causing all the Documents to be realized.
// Since this is on the UI thread, it's best just to not do the work if we don't need it.
if (SolutionCrawlerOptions.GetBackgroundAnalysisScope(newProject) != BackgroundAnalysisScope.ActiveFile &&
oldProject.SupportsCompilation &&
if (oldProject.SupportsCompilation &&
!object.Equals(oldProject.ParseOptions, newProject.ParseOptions))
{
foreach (var doc in newProject.Documents)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册