question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a task instancePolicy to task runOptions.

See original GitHub issue

When 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:open
  • Created 4 years ago
  • Reactions:37
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

21reactions
aromancommented, Feb 18, 2021

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

11reactions
jejcommented, Jan 23, 2022

Am I missing an option or a tweak to get rid of this pop-up?..

capture_ecran_20220124-000525

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found