From 41eea61fb511ba9620d087405f5383f9597e031f Mon Sep 17 00:00:00 2001 From: eyza Date: Sun, 29 Sep 2024 13:04:46 +0200 Subject: [PATCH] Fixed correct update of currently selected game in status bar when manually changed --- src/GscStatusBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GscStatusBar.ts b/src/GscStatusBar.ts index 16140d1..50d6397 100644 --- a/src/GscStatusBar.ts +++ b/src/GscStatusBar.ts @@ -63,7 +63,7 @@ export class GscStatusBar { const gscFile = GscFiles.getCachedFile(uri); - const currentGame = (gscFile === undefined) ? GscConfig.getSelectedGame(workspaceFolder.uri) : gscFile.currentGame; + const currentGame = (gscFile === undefined || debugText === "configChanged") ? GscConfig.getSelectedGame(workspaceFolder.uri) : gscFile.currentGame; LoggerOutput.log(`[GscStatusBar] Status bar updated with game: "${currentGame}"`, vscode.workspace.asRelativePath(uri));