Skip to content

Web VS Code extensions cannot activate ms-vscode.wasm-wasi-core #210

@jacbz

Description

@jacbz

When writing a web-only VS Code extension, i.e. with a package.json that only defines a "browser" entrypoint, the extension will not activate when depending on ms-vscode.wasm-wasi-core:

"extensionDependencies": [
    "ms-vscode.wasm-wasi-core"
]

Minimal working example:

  • Install the WASI based WebAssembly Execution Engine from the Marketplace.
  • Download the official lsp-web-extension-sample example.
  • Add ms-vscode.wasm-wasi-core as an extension dependency and run.
  • The extension will not activate and will display the error:
    Cannot activate the 'lsp-web-extension-sample' extension because it depends on the 'WASI based WebAssembly Execution Engine' extension, which is not loaded. Would you like to reload the window to load the extension?
    
    Reloading the window does not fix the issue.

Tested on Mac (with the default "Run Web Extension" launch option; VS Code 1.94.0, on Sonoma 14.6.1), and also within a self-hosted web environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions