-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
electron: fork backend in node process
Simplify Electron's src-gen to always spawn the Theia backend in a Node.js process, and make sure to patch the `process.versions.electron` variable, for packages to correctly understand their environment (Electron vs Node). Patching is done via a THEIA_ELECTRON_VERSION environment variable that the backend must pick up and apply to `process.versions.electron`. Add a debug configuration for both electron-main process and backend process. Since Electron main process and backend process are now detached, I added a THEIA_BACKEND_EXEC_ARGV environment variable in which you can pass options to use when forking the backend. The format is a JSON stringified array of strings. Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
- Loading branch information
1 parent
ae5591e
commit 2f71ca7
Showing
4 changed files
with
95 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters