Skip to content

Add a code-terminal shell command to start a command in VSCode's terminal #248999

Closed as not planned
@sofianegargouri

Description

@sofianegargouri

Today we have a code shell command that allows us to open a directory directly into VSCode.

It would be awesome if we could have a code-terminal that would work like other terminal commands, and especially being able to start a terminal running a command, like we can find on xterm or gnome-terminal: https://askubuntu.com/a/46630

I have a few projects that need a few commands run in parallel to start (ie: starting Rails server, then Vite server, a docker-compose for databases).
That way I could write a kind-of tech-agnostic start.sh containing something like:

vscode-terminal -e "cd backend && docker compose up"
vscode-terminal -e "cd backend && rails s"
vscode-terminal -e "cd frontend && yarn start"

Today we have the Restore Terminals extension that is really vscode-dependent while having the CLI would allow us to either check if the command is available before starting it or using another command.

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions