fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

Create local terminal when connected to remote #41

Open d4nst opened 4 years ago

d4nst commented 4 years ago

When I am using vscode remote I like to open a terminal in my local machine. Sometimes I need to open more than one since I want to ssh to other servers different to the one I am connected with vscode. Currently, it is possible to open local terminals using Terminal: Create New Integrated Terminal (Local). However, I need to manually use this command and rename each local terminal that I want to open, which is not ideal.

I was thinking that maybe I could use your extension to open any number of local terminals when I am in a remote session. Is this supported? I can't see how to do it in the docs.

fabiospampinato commented 4 years ago

Is this supported?

I don't know, I don't use vscode remotely, let me know if it does or if it doesn't work.

d4nst commented 4 years ago

Sorry, I forgot to mention that. No, it doesn't work. By default it creates a new terminal in the remote machine, which is the same thing that happens if you click on the + icon or if you call the Terminal: Create New Integrated Terminal command. The functionality must be possible since you can open a local terminal using the Terminal: Create New Integrated Terminal (Local) command.

fabiospampinato commented 4 years ago

PR welcome for adding a "remote" property which is false by default, or maybe a "local" property which is enabled by default, whichever makes more sense.