microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.67k stars 292 forks source link

Show attached container name instead of image #2705

Open dfarley1 opened 4 years ago

dfarley1 commented 4 years ago

I'm using VSCode to attach to several remote containers which are created using Docker Compose. These containers appear to have unique names that show up under "Attributes > Name" in the Remote Explorer details section. image

However, when I attach to these containers, the VSCode window title and the green "Remote" button/menu in the bottom left only show the container's Image which is mostly useless, especially for distinguishing between multiple windows. image

docker ps shows the two containers' names listed, why can't VSCode get them too?

CONTAINER ID        IMAGE                                    COMMAND             CREATED             STATUS              PORTS                     NAMES
c041e00538c9        gitlab.[...]/core/depot-stage/combined   "sleep infinity"    7 hours ago         Up 36 minutes       0.0.0.0:32768->8080/tcp   firmwolverine_stage_1
253b8fcd063e        gitlab.[...]/core/depot-stage/combined   "sleep infinity"    3 weeks ago         Up 36 minutes       0.0.0.0:32769->8080/tcp   depotviolet_stage_1
sammosna commented 4 years ago

+1

gordonrust commented 4 months ago

+1