Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow SharedArrayBuffer to be used by extensions #14

Closed
michalbali256 opened this issue Nov 18, 2021 · 1 comment
Closed

Allow SharedArrayBuffer to be used by extensions #14

michalbali256 opened this issue Nov 18, 2021 · 1 comment

Comments

@michalbali256
Copy link

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.

@aeschli
Copy link
Contributor

aeschli commented Feb 2, 2022

Closing in favor of microsoft/vscode#137884

@aeschli aeschli closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants