提交 2edeb871 编写于 作者: H HeeJae Chang

fixed TestSynchronizeWithBuild failure

上级 f1711242
......@@ -61,8 +61,9 @@ public static DiagnosticAnalysisResult CreateFromBuild(Project project, Immutabl
// so we put everything in as semantic local with default version. this lets us to replace those to live diagnostics when needed easily.
var version = VersionStamp.Default;
// filter out any document that doesn't support diagnostics
var group = diagnostics.GroupBy(d => d.DocumentId).Where(g => project.GetDocument(g.Key).SupportsDiagnostics()).ToList();
// filter out any document that doesn't support diagnostics.
// g.Key == null means diagnostics on the project which assigned to "others" error category
var group = diagnostics.GroupBy(d => d.DocumentId).Where(g => g.Key == null || project.GetDocument(g.Key).SupportsDiagnostics()).ToList();
var result = new DiagnosticAnalysisResult(
project.Id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册