-
Notifications
You must be signed in to change notification settings - Fork 26
Description
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:
By the way, the extension compiled to WebAssembly seems to be running when I start chrome with --disable-web-security.