Tyriar / vscode-windows-terminal

VS Code integration with Windows Terminal
https://marketplace.visualstudio.com/items?itemName=Tyriar.windows-terminal
MIT License
33 stars 8 forks source link

Reuse already opened terminal #35

Closed Morgy93 closed 2 years ago

Morgy93 commented 3 years ago

Hello,

if I use the Windows Terminal on one ssh host and open up another ssh host then the Windows Terminal is opened up on a seperate window instead of the already opened one. I'd love to have an option for "attach to already running wt.exe" or something like that.

Joinyy commented 3 years ago

Should be quite easy by adding '-w', '0' to the command line args here as I understood.

https://github.com/Tyriar/vscode-windows-terminal/blob/895f970ddfb800ff0b25fe48e15e0f7909f1499b/src/extension.ts#L47

Edit: By quickly hacking that into my installed extension.js file it works as intended. Not there's just the question if this is an additional entry in the context menu or just a checkmark setting "Reuse existing terminal window".