Description
Does this issue occur when all extensions are disabled?: No
- VS Code Version: 1.62.3 (vscode.dev)
- Browser Version: Chrome 96
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, which translate into web workers and emscripten uses SharedArrayBuffer to communicate between them. However SharedArrayBuffer is not available on vscode.dev, since the site does not use cross-origin isolation - see this: https://developer.chrome.com/blog/enabling-shared-array-buffer/
Steps to Reproduce:
- Open vscode.dev in your browser (I tried with Chrome 96).
- Install this extension: https://marketplace.visualstudio.com/items?itemName=mbali.hlasm-browser-dev
- Open arbitrary folder on your computer (empty one is enough)
- Create a new empty file
- Open developer tools of browser
- Choose HLASM as language of the file
In the Console of developer tools, this message shows:
And of course, the extension is not enabled.
Additional Info:
I have managed to get it working by starting chrome with disabled security:
chrome.exe --enable-features=SharedArrayBuffer --disable-web-security --user-data-dir="<some-folder-on-your-computer>"
If I reproduce those steps with chrome started this way, the extensions works as expected (just try to type something and there will by some diagnostics).
BTW I have opened a similar issue (microsoft/vscode-test-web#14) in the vscode-test-web repository, but nobody noticed it there, so I created this issue with reproducible example.