rojo-rbx / vscode-rojo

Visual Studio Code plugin for Rojo
https://marketplace.visualstudio.com/items?itemName=evaera.vscode-rojo
Mozilla Public License 2.0
35 stars 23 forks source link

Fixed open script externally with vscode rojo #60

Closed OXllie closed 2 years ago

OXllie commented 2 years ago

The environment variable ELECTRON_RUN_AS_NODE is inherited by rojo from the extension host when it is spawned meaning vscode and other electron apps will try to start as a node.js process.

For a user with "Open Scripts Externally" enabled in studio, who is also running the rojo extension, this would result in scripts closing in studio without vscode opening, appearing non functional.