Remote Explorer for Container shows no container only when no folder opened in VSCode over Remote SSH #4913
Labels
bug
Issue identified by VS Code Team member as probable bug
containers
Issue in vscode-remote containers
verified
Verification succeeded
Milestone
I'm using Remote SSH extension to access the linux server where docker is running.
Just after the Remote SSH session is started, the file explorer of VSCode will typically be in a no folder opened state.
At this moment, Remote Container extension is not able to show the docker containers running on the server.
However, after opening some (server's) folder, it will appear properly.
This is a strange behavior.
settings.json
:Steps to Reproduce:
myserver
and do Connect to Host in Current Window.66871b696f33
is shown in Other Containers.What you expected to see, versus what you actually saw:
I think it is better that the container is shown in the Remote Explorer even if no folder is opened.
Errors from the Dev Tools Console (open from the menu: Help > Toggle Developer Tools):
Please see the attachment file. -1618923443736.log
I guess that the key of this issue is in the error of
docker version --format {{.Server.APIVersion}}
command:From this error, it is assumed that Remote Container extension is in Windows mode when no folder is opened even if VSCode is connected via Remote SSH to the linux server.
My additional experiments:
Although Attach Visual Studio Code command also fails with the dialog message:
Thanks.
The text was updated successfully, but these errors were encountered: