Skip to content

[vscode-wasm] Avoid workspace folder name clashing #3

@andy0130tw

Description

@andy0130tw

In a multi-root workspace, folders are mounted by their names into the VFS with paths such as /workspaces/foo. When names are duplicated, the current implementation prioritizes the last one, which may be confusing.

I propose the following way of disambiguation: For each name that is not unique, add a hash suffix computed from its URI using VS Code's URI hash function, adding a serial number if still conflict. This should be opaque to the API consumer as the conversion happens in the URI converter created with createUriConverters.

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