Description
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.