Skip to content

add re-run last test option #572

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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 lint problems
  • Loading branch information
Nathan Esau committed Jun 12, 2020
commit 41baf49f57a0368f3609ab8ab47bde569ea78c67
7 changes: 3 additions & 4 deletions src/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export async function testSolution(uri?: vscode.Uri): Promise<void> {
label: "$(refresh) Re- run last...",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UI: Use this icon please: $(debug-restart)

reference: https://microsoft.github.io/vscode-codicons/dist/codicon.html

description: "",
detail: "Test with the cases which were last run",
value: ":rerun"
}
value: ":rerun",
},
);
const choice: IQuickItemEx<string> | undefined = await vscode.window.showQuickPick(picks);
if (!choice) {
Expand Down Expand Up @@ -84,8 +84,7 @@ export async function testSolution(uri?: vscode.Uri): Promise<void> {
case ":rerun":
if (leetCodeExecutor.lastTestString) {
result = await leetCodeExecutor.testSolution(filePath, leetCodeExecutor.lastTestString);
}
else { // run default cases
} else { // run default cases
result = await leetCodeExecutor.testSolution(filePath);
}
break;
Expand Down