Skip to content

fix #10 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
### Added
- Support setting the default language to solve problems [(#5)](https://github.com/jdneo/vscode-leetcode/issues/5)

### Fixed
- When user cancels login, no further actions will happen [(#10)](https://github.com/jdneo/vscode-leetcode/issues/10)

## [0.1.2]
### Fixed
- Fix the deplicated nodes in LeetCode Explorer bug [(#6)](https://github.com/jdneo/vscode-leetcode/issues/6)
Expand Down
4 changes: 2 additions & 2 deletions src/leetCodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
});
if (!name) {
childProc.kill();
resolve(undefined);
return resolve(undefined);
}
childProc.stdin.write(`${name}\n`);
const pwd: string | undefined = await vscode.window.showInputBox({
Expand All @@ -69,7 +69,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
});
if (!pwd) {
childProc.kill();
resolve(undefined);
return resolve(undefined);
}
childProc.stdin.write(`${pwd}\n`);
childProc.stdin.end();
Expand Down