You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using unxhr via asciidoctor-kroki and asciidoctor-vscode.
I noticed that XMLHttpRequest does not work in this environment, because the synchronous implementation based on re-executing the running process will fail. It assumes to call node with a helper script as argument.
I'm new to both Electron and Visual Studio Code extensions, but as it seems, you should set the environment variable
ELECTRON_RUN_AS_NODE=1
to make it work with Electron and, in addition, the command line option
--ms-enable-electron-run-as-node
to make Visual Studio Code actually obey above environment variable.
I succesfully verified this within Visual Studio Code using the following patch:
I'm using unxhr via asciidoctor-kroki and asciidoctor-vscode.
I noticed that XMLHttpRequest does not work in this environment, because the synchronous implementation based on re-executing the running process will fail. It assumes to call
node
with a helper script as argument.I'm new to both Electron and Visual Studio Code extensions, but as it seems, you should set the environment variable
to make it work with Electron and, in addition, the command line option
to make Visual Studio Code actually obey above environment variable.
I succesfully verified this within Visual Studio Code using the following patch:
However, I'm not sure if these changes need to be added conditionally and what the conditions would be or how they could be tested.
Cheers,
Enrik
The text was updated successfully, but these errors were encountered: