Closed wzxinchen closed 1 year ago
I am developing an extension that works well before calling the window object.
When I call window, it reports this error
Activating extension 'wzxinchen.codegame' failed: window is not defined
My understanding is that because most of the code of openvscode runs on the server, including the code of extension there is no window object?
What should I do if I need my extension to run some code on the browser side?
cc @jeanp413
@wzxinchen you cannot use the window object in vscode extensions, If you are you using the webview api to render some content inside an iframe then you can use the window object there.
I am developing an extension that works well before calling the window object.
When I call window, it reports this error
Activating extension 'wzxinchen.codegame' failed: window is not defined
My understanding is that because most of the code of openvscode runs on the server, including the code of extension there is no window object?
What should I do if I need my extension to run some code on the browser side?