github1s icon indicating copy to clipboard operation
github1s copied to clipboard

Activating extension 'vscode.typescript-language-features' failed: Can't find variable: Worker.

Open anishkny opened this issue 4 years ago • 1 comments

First up, this is awesome!!!

I see an error popup in bottom right:

Activating extension 'vscode.typescript-language-features' failed: Can't find variable: Worker.

Upon loading any URL eg: https://github1s.com/conwnet/github1s/blob/HEAD/src/vs/github1s/util.ts

Screen Shot 2021-02-09 at 3 32 09 PM

anishkny avatar Feb 09 '21 23:02 anishkny

@anishkny Upon first look at the error, I can see that it's got something to do with the WebWorker that's initialized to load the extensions for vs-code. I tried to reproduce the error on Chrome, Safari and Firefox and looks like the error only occurs on Safari.

@conwnet Per my knowledge, Web Workers are now supported on Safari (https://caniuse.com/webworkers) so that might not be the issue but I have a hunch it might have something to do with initializing the worker inside an iframe, the way the extensions are loaded here

kanhegaonkarsaurabh avatar Feb 10 '21 02:02 kanhegaonkarsaurabh