Skip to content

Instantly share code, notes, and snippets.

@sketchpunk
Created August 11, 2021 16:50
Show Gist options
  • Save sketchpunk/0259b1903827e336486d1faeed4c951f to your computer and use it in GitHub Desktop.
Save sketchpunk/0259b1903827e336486d1faeed4c951f to your computer and use it in GitHub Desktop.
VSCode : Build Task with ctrl+shift+b
Create a folder called .vscode at the root of the project, add this file to it.
ctrl+shift-b will rust the quickstart script.
If you run the shortcut again, it will prompt you to terminate or restart the task. You will need to use a mouse to select the options.
----------
::FUTURE::
https://github.com/microsoft/vscode/pull/117129
instancePolicy doesn't work yet. Waiting on review/merge.
This would allow to automatically terminate/restart previous task without a prompt.
{
"version": "2.0.0",
"tasks": [
{
"type" : "npm",
"script" : "quickstart",
"label" : "npm: quickstart",
"detail" : "run-s build:modern start:server",
"group" : { "kind": "build", "isDefault": true },
"runOptions" : { "instanceLimit": 1, "instancePolicy": "terminateOldest" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment