Skip to content

Commit

Permalink
Fixed correct update of currently selected game in status bar when ma…
Browse files Browse the repository at this point in the history
…nually changed
  • Loading branch information
eyza-cod2 committed Sep 29, 2024
1 parent 441dc24 commit 41eea61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GscStatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 41eea61

Please sign in to comment.