mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user