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 20f14186369438c14470996940cbf1de9ed102db
2 changes: 1 addition & 1 deletion .vscode/tasks.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion package.json
View file Open in desktop
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.18.0",
"version": "0.18.1",
"author": "Sheng Chen",
"publisher": "LeetCode",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/list.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function listProblems(): Promise<IProblem[]> {
const leetCodeConfig: vscode.WorkspaceConfiguration = vscode.workspace.getConfiguration("leetcode");
const showLocked: boolean = !!leetCodeConfig.get<boolean>("showLocked");
const problems: IProblem[] = [];
for (let pc in ProblemCategory) {
for (const pc in ProblemCategory) {
const result: string = await leetCodeExecutor.listProblems(showLocked, ProblemCategory[pc]);
const lines: string[] = result.split("\n");
const reg: RegExp = /^(.)\s(.{1,2})\s(.)\s\[(.*)\]\s*(.*)\s*(Easy|Medium|Hard)\s*\((\s*\d+\.\d+ %)\)/;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/cpUtils.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function executeCommand(command: string, args: string[], options: c
export async function executeCommandWithProgress(message: string, command: string, args: string[], options: cp.SpawnOptions = { shell: true }): Promise<string> {
let result: string = "";
await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification }, async (p: vscode.Progress<{}>) => {
return new Promise(async (resolve, reject): Promise<void> => {
return new Promise(async (resolve: (value?: unknown) => void, reject: (e: Error) => void): Promise<void> => {
p.report({ message });
try {
result = await executeCommand(command, args, options);
Expand Down

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