Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

支持了数据库,shell,多线程,面试宝典,剑指offer #673

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

Closed
libaoxi wants to merge 11 commits into LeetCode-OpenSource:master from libaoxi:master
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix bug
  • Loading branch information
libaoxi committed Feb 4, 2021
commit 0e5496306ca68b215f46a177b4dec64a38d4e59f
1 change: 0 additions & 1 deletion src/commands/show.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ async function showProblemInternal(node: IProblem): Promise<void> {
}

finalPath = wsl.useWsl() ? await wsl.toWinPath(finalPath) : finalPath;

const descriptionConfig: IDescriptionConfiguration = settingUtils.getDescriptionConfiguration();
await leetCodeExecutor.showProblem(node, language, finalPath, descriptionConfig.showInComment);
const promises: any[] = [
Expand Down
4 changes: 2 additions & 2 deletions src/leetCodeExecutor.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class LeetCodeExecutor implements Disposable {

if (!await fse.pathExists(filePath)) {
await fse.createFile(filePath);
const codeTemplate: string = await this.executeCommandWithProgressEx("Fetching problem data...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", problemNode.id, templateType, "-l", language]);
const codeTemplate: string = await this.executeCommandWithProgressEx("Fetching problem data...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", `"${problemNode.id}"`, templateType, "-l", language]);
await fse.writeFile(filePath, codeTemplate);
}
}
Expand All @@ -111,7 +111,7 @@ class LeetCodeExecutor implements Disposable {
}

public async getDescription(problemNodeId: string): Promise<string> {
return await this.executeCommandWithProgressEx("Fetching problem description...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", problemNodeId, "-x"]);
return await this.executeCommandWithProgressEx("Fetching problem description...", this.nodeExecutable, [await this.getLeetCodeBinaryPath(), "show", `"${problemNodeId}"`, "-x"]);
}

public async listSessions(): Promise<string> {
Expand Down

AltStyle によって変換されたページ (->オリジナル) /