diff --git a/src/features/diagnosticsProvider.ts b/src/features/diagnosticsProvider.ts index c122de82b..fdfc47cb6 100644 --- a/src/features/diagnosticsProvider.ts +++ b/src/features/diagnosticsProvider.ts @@ -245,13 +245,6 @@ class DiagnosticsProvider extends AbstractSupport { } } - // Clear diagnostics for files that no longer have any diagnostics. - this._diagnostics.forEach((uri, diagnostics) => { - if (!entries.find(tuple => tuple[0] === uri)) { - this._diagnostics.delete(uri); - } - }); - // replace all entries this._diagnostics.set(entries); });