Skip to content

Show underlining title and path for Remote Dev Container #4

@Niush

Description

@Niush

Hello,
Currently for vscode-remote:// only the raw path and directory is shown.

But for Dev Container example: vscode-remote://dev-container+7b22686f737450....5486f7374227d7d/tmp/app it makes sense to parse the hex and show the actual underlining path and project title.

At least in Python we can do:

import json
import binascii

json.loads(binascii.unhexlify("7b22686f737450....5486f7374227d7d").decode('utf-8'))

# {'hostPath': '\\\\wsl.localhost\\Ubuntu-22.04\\home\\user\\code\\my-app-name', 'localDocker': False, 'configFile': {'$mid': 1, 'path': '/home/user/code/my-app-name/.devcontainer/devcontainer.json', 'scheme': 'vscode-fileHost'}}

Just showing "my-app-name" and "hostPath" would be great. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions