Skip to content

[WASM] Restart WASM ALS when the workspace's folder list changes #268

@andy0130tw

Description

@andy0130tw

As a limitation of how workspace integration is implemented in vscode-wasm, the workspace structure is fixed upon the WASM module's initialization phase. Specifically, the folder list is mapped into WASI preopened file descriptors and cannot be changed when the program executes. If the user opens or closes some workspace folder later, it is impossible to reflect changes to WASM module's file system. The mismatching can cause user confusions. The best we can do for now is to kill and respawn the WASM module.

It is possible to make the list dynamic in vscode-wasm by providing a single root, not mapping each workspace folder to a preopen fd, but I do not know whether it is an easy task.

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