Skip to content

Commit c7273a4

Browse files
authored
Fix the bug that status bar failed to honor the setting (LeetCode-OpenSource#275)
1 parent b77d76a commit c7273a4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/statusbar/LeetCodeStatusBarItem.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ export class LeetCodeStatusBarItem implements vscode.Disposable {
1616
switch (status) {
1717
case UserStatus.SignedIn:
1818
this.statusBarItem.text = `LeetCode: ${user}`;
19-
this.statusBarItem.show();
2019
break;
2120
case UserStatus.SignedOut:
2221
default:
23-
this.statusBarItem.hide();
22+
this.statusBarItem.text = "";
2423
break;
2524
}
2625
}

src/statusbar/leetCodeStatusBarController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LeetCodeStatusBarController implements Disposable {
3939

4040
private isStatusBarEnabled(): boolean {
4141
const configuration: WorkspaceConfiguration = workspace.getConfiguration();
42-
return configuration.get<boolean>("leetcode.enableStatusBar", false);
42+
return configuration.get<boolean>("leetcode.enableStatusBar", true);
4343
}
4444
}
4545

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy