Skip to content

Commit 8ea762c

Browse files
authored
Merge pull request LeetCode-OpenSource#11 from jdneo/cs/fix
fix LeetCode-OpenSource#10
2 parents feae070 + 5e67942 commit 8ea762c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
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

Lines changed: 2 additions & 2 deletions
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)
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