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

Conversation

nathanesau
Copy link
Contributor

re-run last option

Implement request from Issue #570

@@ -42,6 +42,12 @@ export async function testSolution(uri?: vscode.Uri): Promise<void> {
detail: "Test with the written cases in file",
value: ":file",
},
{
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

@jdneo
Copy link
Member

jdneo commented Jun 27, 2020

Hey @nathanesau,

Thank you for your contribution, and sorry for the late reply...

I think it could be better if we use the icon debug-restart

@jdneo
Copy link
Member

jdneo commented Jul 23, 2020

@nathanesau, will you still have the interest to update the PR?

@nathanesau
Copy link
Contributor Author

Sorry for the delay.

I have made the change (commit "use debug-start icon"):

re_run_last

@@ -42,6 +42,12 @@ export async function testSolution(uri?: vscode.Uri): Promise<void> {
detail: "Test with the written cases in file",
value: ":file",
},
{
label: "$(debug-restart) 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.

One suggestion here: We should only show the re-run option when the lastTest is not empty. Also, this option should put at the top of the list, to make it more convenient for the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants