Skip to content

Commit

Permalink
Merge pull request #63 from Discookie/ericsson/fix-double-load
Browse files Browse the repository at this point in the history
Fix adding selectedEntry to openedFiles
  • Loading branch information
csordasmarton authored Jan 31, 2022
2 parents ec43c23 + b47160f commit 3cf7e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/processor/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3cf7e4a

Please sign in to comment.