Skip to content

Commit

Permalink
prepare for the 0.1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo committed Feb 21, 2018
1 parent 9816d42 commit 7d619b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
## [0.1.1]
### Fixed
- Fixed a bug in LeetCode Explorer [(#3)](https://github.com/jdneo/vscode-leetcode/issues/3)
- Remove the show problem command from command palette [(#4)](https://github.com/jdneo/vscode-leetcode/issues/4)

## [0.1.0]
### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-leetcode",
"displayName": "LeetCode",
"description": "Solve LeetCode problems in VS Code",
"version": "0.1.0",
"version": "0.1.1",
"author": "Sheng Chen",
"publisher": "shengchen",
"icon": "resources/LeetCode.png",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function parseSessionsToPicks(p: Promise<ISession[]>): Promise<Array<IQuic
export async function createSession(channel: vscode.OutputChannel): Promise<void> {
const session: string | undefined = await vscode.window.showInputBox({
prompt: "Enter the new session name.",
validateInput: (s: string) => s.trim() ? undefined : "Session name must not be empty",
validateInput: (s: string) => s && s.trim() ? undefined : "Session name must not be empty",
});
if (!session) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/commands/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function showProblem(channel: vscode.OutputChannel, node?: LeetCode
if (!node) {
return;
}
await showProblemInternal(channel, node.id.split(".")[1]);
await showProblemInternal(channel, node.id);
}

export async function searchProblem(channel: vscode.OutputChannel): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/leetCodeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LeetCodeManager extends EventEmitter implements ILeetCodeManager {
childProc.on("error", reject);
const name: string | undefined = await vscode.window.showInputBox({
prompt: "Enter user name.",
validateInput: (s: string) => s.trim() ? undefined : "User name must not be empty",
validateInput: (s: string) => s && s.trim() ? undefined : "User name must not be empty",
});
if (!name) {
childProc.kill();
Expand Down

0 comments on commit 7d619b3

Please sign in to comment.