提交 15613a58 编写于 作者: H Heejae Chang 提交者: Heejae Chang

Merge pull request #11972 from heejaechang/fixcrash10

fix crash due to result existing both in compiler and ide side.
上级 3679da94
......@@ -309,7 +309,9 @@ public IEnumerable<DiagnosticData> ConvertToLocalDiagnostics(Document targetDocu
}
// merge the result to existing one.
result = result.Add(analyzer, builder.ToResult());
// there can be existing one from compiler driver with empty set. overwrite it with
// ide one.
result = result.SetItem(analyzer, builder.ToResult());
}
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册