Skip to content

feat: run tasks in dedicated terminals#256

Open
ubershmekel wants to merge 1 commit into
go-task:mainfrom
ubershmekel:multi-terminal
Open

feat: run tasks in dedicated terminals#256
ubershmekel wants to merge 1 commit into
go-task:mainfrom
ubershmekel:multi-terminal

Conversation

@ubershmekel

@ubershmekel ubershmekel commented Jun 30, 2026

Copy link
Copy Markdown

I was tired of VS code not launching my test task in a separate terminal while a debug task was running. So I made this PR and fork.

Another problem was that when a task is running VS Code would pop up a "select instance to terminate" dialog. Then it would run the wrong task somehow.

The change itself was done by Codex, then Claude reviewed the changes and provided the following CL description...

Route both provider-generated tasks (toTask) and tasks resolved from tasks.json (resolveTask) through a shared useDedicatedTerminal helper so each task gets its own panel, while letting user-defined presentation options in tasks.json take precedence.

Also fixes resolveTask, which previously hardcoded task <name> and ran with no cwd: it now honors the configured task binary path, sets the workspace as cwd, and forwards CLI args. Command-string construction is shared via buildTaskCommand to keep the two paths in sync.

Route both provider-generated tasks (toTask) and tasks resolved from
tasks.json (resolveTask) through a shared useDedicatedTerminal helper so
each task gets its own panel, while letting user-defined presentation
options in tasks.json take precedence.

Also fixes resolveTask, which previously hardcoded `task <name>` and ran
with no cwd: it now honors the configured task binary path, sets the
workspace as cwd, and forwards CLI args. Command-string construction is
shared via buildTaskCommand to keep the two paths in sync.
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.

1 participant