added ability to clear all diagnostics reproted from a IDiagnosticUpd… (#33805)
* added ability to clear all diagnostics reproted from a IDiagnosticUpdateSource previously IDiagnosticUpdateSource has to clear each diagnostics it reported group by group. that was fine for IDiagnosticUpdateSource that supports incremental update, but some source such as EditAndContinue doesn't support incremental update since their errors (emit errors) come and go as a bulk (whole project). when they update, they need to update everything. so tracking things in group for incremental update is unnecessary for such source. the new API (Source.Cleared) make it easy for source to clear all diagnostics at once it produced. * addressing PR feedbacks
Showing
想要评论请 注册 或 登录