Skip to content
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
7
7
### Added
8
8
- Add Code Lens for submitting the answer to LeetCode
9
9
10
+ ### Fixed
11
+ - Fix the bug that the extension could not automatically sign in([ 72] ( https://github.com/jdneo/vscode-leetcode/issues/72 ) )
12
+
10
13
## [ 0.8.1]
11
14
### Changed
12
15
- Upgrade LeetCode CLI to v2.6.1
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
19
19
if ( ! await leetCodeExecutor . meetRequirements ( ) ) {
20
20
return ;
21
21
}
22
+
23
+ leetCodeManager . on ( "statusChanged" , ( ) => {
24
+ leetCodeStatusBarItem . updateStatusBar ( leetCodeManager . getStatus ( ) , leetCodeManager . getUser ( ) ) ;
25
+ leetCodeTreeDataProvider . refresh ( ) ;
26
+ } ) ;
27
+
22
28
leetCodeManager . getLoginStatus ( ) ;
23
29
const leetCodeTreeDataProvider : LeetCodeTreeDataProvider = new LeetCodeTreeDataProvider ( context ) ;
24
30
@@ -41,11 +47,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
41
47
) ;
42
48
43
49
await plugin . initializeEndpoint ( ) ;
44
-
45
- leetCodeManager . on ( "statusChanged" , ( ) => {
46
- leetCodeStatusBarItem . updateStatusBar ( leetCodeManager . getStatus ( ) , leetCodeManager . getUser ( ) ) ;
47
- leetCodeTreeDataProvider . refresh ( ) ;
48
- } ) ;
49
50
}
50
51
51
52
export function deactivate ( ) : void {
You can’t perform that action at this time.
0 commit comments