Don't skip JS/TS diagnostic updates on equals (#177149)

Even though the diagnostics on the ext host side may be equal, the displayed diagnostic may be at a different spot. We need to make sure the UI is also updated in these cases by setting the diagnostics again
This commit is contained in:
Matt Bierner
2023-03-14 18:03:51 -07:00
committed by GitHub
parent 3615689008
commit 3df6a29a80

View File

@@ -53,7 +53,7 @@ class FileDiagnostics {
}
const existing = this._diagnostics.get(kind);
if (arrays.equals(existing || arrays.empty, diagnostics, diagnosticsEquals)) {
if (existing?.length === 0 && diagnostics.length === 0) {
// No need to update
return false;
}