Add a task instancePolicy to task runOptions.
See original GitHub issueWhen a task has reached the max number of instances it can have (default is 1, can be changed with instanceLimit
) the instancePolicy
determines what happens when another instance is started.
History: https://github.com/microsoft/vscode/issues/32264
PR for insanceLimit
which is relevant to anyone interested in implementing instancePolicy
: https://github.com/microsoft/vscode/pull/89872
Issue Analytics
- State:
- Created 4 years ago
- Reactions:37
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Tasks in Visual Studio Code
Expand your development workflow with task integration in Visual Studio Code. ... Run Configure Tasks from the global Terminal menu and select the...
Read more >[Visual Studio Code]: Run task on save - Stack Overflow
You can use the Trigger Task on Save extension. To set it up, add the following to your .vscode/settings.json : "triggerTaskOnSave.tasks": ...
Read more >How to run a command automatically in VS Code when you ...
How to create a task file. The tasks specific to your project are stored in <project folder>/.vscode/tasks.json . You can create the file ......
Read more >Create a task - AWS Snowball Edge Developer Guide
To instruct one or more target devices to perform a task, such as unlocking or rebooting, use create-task . You specify target devices...
Read more >Automating task to run on startup in VSCode | by Divakar Rajesh
Create a tasks.json file inside the .vscode folder ... folderOpen runOn option inside runOptions makes the task run on opening a workspace ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any update on this? i think there’s a clear and common usecase here for running a server – you want to terminate the previous process and restart so the port is free
Am I missing an option or a tweak to get rid of this pop-up?..