Skip to content

Allow SharedArrayBuffer to be used by extensions #14

@michalbali256

Description

@michalbali256

Hi,

I am trying to make our extension (https://github.com/eclipse/che-che4z-lsp-for-hlasm) work in browser environment so it can be used with web version of vscode. It is written in C++ and we are using emscripten to compile it into WebAssembly. The C++ backend uses multiple threads, so in browser, we need full support of SharedArrayBuffer. That is only available, if cross origin isolation is enabled, see this: https://developer.chrome.com/blog/enabling-shared-array-buffer/

I have experimented with adding the headers from the blog to app.ts file, but as far as I understand, the extensionHost failed to start, since it is downloaded from a different site (vscode-webview.net). See the following error:
image

By the way, the extension compiled to WebAssembly seems to be running when I start chrome with --disable-web-security.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions