From b47160f766a9023de67bfc14b979fb347f580c81 Mon Sep 17 00:00:00 2001 From: Discookie Date: Fri, 28 Jan 2022 14:22:09 +0100 Subject: [PATCH] Fix adding selectedEntry to openedFiles --- src/backend/processor/diagnostics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/processor/diagnostics.ts b/src/backend/processor/diagnostics.ts index 9c512ac..939f059 100644 --- a/src/backend/processor/diagnostics.ts +++ b/src/backend/processor/diagnostics.ts @@ -70,7 +70,7 @@ export class DiagnosticsApi { public reloadDiagnostics() { // TODO: Allow loading all diagnostics at once - const filesToLoad = this._openedFiles; + const filesToLoad = [...this._openedFiles]; if (this._selectedEntry) { filesToLoad.push(this._selectedEntry.file);