提交 251191e8 编写于 作者: H Heejae Chang

fix crash due to result existing both in compiler and ide side.

this can happen since we don't filter out ide only analyzer when creating compiler driver
which is okay since it will become noop for compiler driver. filtering is basically more work.
上级 214aa346
......@@ -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.
先完成此消息的编辑!
想要评论请 注册