Skip to content

Commit

Permalink
🐛fix: reset bar message without waiting for user response
Browse files Browse the repository at this point in the history
  • Loading branch information
inimaz committed Nov 10, 2024
1 parent dd8930b commit 886c74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ export const stopTracker = async (
const stopProcess = pythonProcess.kill('SIGTERM');
pythonProcess = null; // Reset `pythonProcess` to indicate it’s stopped
}
// Reset the status bar to its original state
initializeStatusBar(statusBarItem, DEFAULT_STATUS_BAR_TEXT);

if (emissions_file) {
// Ask the user if they want to open the emissions file
Expand All @@ -66,8 +68,6 @@ export const stopTracker = async (
vscode.window.showTextDocument(vscode.Uri.file(emissions_file));
}
}
// Reset the status bar to its original state
initializeStatusBar(statusBarItem, DEFAULT_STATUS_BAR_TEXT);
return pythonProcess;
};

Expand Down

0 comments on commit 886c74f

Please sign in to comment.