Skip to content

Commit 5e67942

Browse files
sheche@microsoft.comsheche@microsoft.com
sheche@microsoft.com
authored and
sheche@microsoft.com
committed
fix #10
1 parent feae070 commit 5e67942

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
77
### Added
88
- Support setting the default language to solve problems [(#5)](https://github.com/jdneo/vscode-leetcode/issues/5)
99

10+
### Fixed
11+
- When user cancels login, no further actions will happen [(#10)](https://github.com/jdneo/vscode-leetcode/issues/10)
12+
1013
## [0.1.2]
1114
### Fixed
1215
- Fix the deplicated nodes in LeetCode Explorer bug [(#6)](https://github.com/jdneo/vscode-leetcode/issues/6)

src/leetCodeManager.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
5959
});
6060
if (!name) {
6161
childProc.kill();
62-
resolve(undefined);
62+
return resolve(undefined);
6363
}
6464
childProc.stdin.write(`${name}\n`);
6565
const pwd: string | undefined = await vscode.window.showInputBox({
@@ -69,7 +69,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
6969
});
7070
if (!pwd) {
7171
childProc.kill();
72-
resolve(undefined);
72+
return resolve(undefined);
7373
}
7474
childProc.stdin.write(`${pwd}\n`);
7575
childProc.stdin.end();

0 commit comments

Comments
 (0)