Skip to content

Commit

Permalink
fix(statusbar): Analysis keeps running on startup
Browse files Browse the repository at this point in the history
This happens on startup when no supported file is open.
Fix by not implicitly assume analysis is running when state isn't 'idle'.
  • Loading branch information
jlindbergh committed Nov 7, 2024
1 parent 8a3a00a commit fb88e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs-statusbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class CsStatusBar {
}

private isAnalysing(stateProperties: CsStateProperties) {
return stateProperties.features.analysis.analysisState !== 'idle';
return stateProperties.features.analysis.analysisState === 'running';
}

private textContent(stateProperties: CsStateProperties) {
Expand Down

0 comments on commit fb88e38

Please sign in to comment.