File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
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
- Support setting the default language to solve problems [ (#5 )] ( https://github.com/jdneo/vscode-leetcode/issues/5 )
9
9
10
+ ### Fixed
11
+ - When user cancels login, no further actions will happen [ (#10 )] ( https://github.com/jdneo/vscode-leetcode/issues/10 )
12
+
10
13
## [ 0.1.2]
11
14
### Fixed
12
15
- Fix the deplicated nodes in LeetCode Explorer bug [ (#6 )] ( https://github.com/jdneo/vscode-leetcode/issues/6 )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
59
59
} ) ;
60
60
if ( ! name ) {
61
61
childProc . kill ( ) ;
62
- resolve ( undefined ) ;
62
+ return resolve ( undefined ) ;
63
63
}
64
64
childProc . stdin . write ( `${ name } \n` ) ;
65
65
const pwd : string | undefined = await vscode . window . showInputBox ( {
@@ -69,7 +69,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
69
69
} ) ;
70
70
if ( ! pwd ) {
71
71
childProc . kill ( ) ;
72
- resolve ( undefined ) ;
72
+ return resolve ( undefined ) ;
73
73
}
74
74
childProc . stdin . write ( `${ pwd } \n` ) ;
75
75
childProc . stdin . end ( ) ;
You can’t perform that action at this time.
0 commit comments