You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, is there a way of passing arguments to open a specific ssh host? I know I can command id opensshremotes.openEmptyWindowInCurrentWindow which brings up the list of configured hosts, but I would like the be able to pass the hostname and the same for opening container with remote-containers.attachToRunningContainer which again opens the list
The text was updated successfully, but these errors were encountered:
Now for the attachToRunningContainer the only way you could achieve this would be creating a custom task. There are two ways this could be achieved:
Create a custom task inside your workspace and execute this task that will be executing the attachToRunningContainer command. Although I don't know if that will work because the workspace must be fully loaded so that tasks inside were considered. You can try and if it doesn't work create a multi-action and chain both commands with some delay.
Create a user level task that will work any workspace.
The 6.0 update adds a new action just for tasks and also support for arguments as types and not just JSON objects as the current latest released version does. The 6.0 won't be released until I finish the documentation.
Tasks.json:
{
"label": "mycustomtask",
"command": "${command:remote-containers.attachToRunningContainer}",
"args": ["container id or name"]
}
Thanks for the info, the openEmptyWindowInCurrentWindow works, but the attaching container is not, but I am still testing it. I might wait for version 6.0
Hey, is there a way of passing arguments to open a specific ssh host? I know I can command id
opensshremotes.openEmptyWindowInCurrentWindow
which brings up the list of configured hosts, but I would like the be able to pass the hostname and the same for opening container withremote-containers.attachToRunningContainer
which again opens the listThe text was updated successfully, but these errors were encountered: