ATL-240: Fixed the VS Code extensions in the app.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-13 15:06:43 +02:00
parent e7a134a181
commit 16cb2cf88b
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
const os = require('os');
const path = require('path');
// Enables the discovery of the VS Code extensions in the embedded `plugins` folder in the final app.
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '..', 'plugins')}`;
process.env.THEIA_PLUGINS = [
process.env.THEIA_PLUGINS,
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
].filter(Boolean).join(',');
require('../src-gen/frontend/electron-main.js');

View File

@ -1,5 +1,5 @@
{ {
"main": "src-gen/frontend/electron-main.js", "main": "scripts/arduino-pro-ide-electron-main.js",
"author": "Arduino SA", "author": "Arduino SA",
"resolutions": { "resolutions": {
"**/fs-extra": "^4.0.3" "**/fs-extra": "^4.0.3"
@ -54,6 +54,7 @@
"files": [ "files": [
"src-gen", "src-gen",
"lib", "lib",
"scripts",
"!node_modules/**/*.{ts,map}", "!node_modules/**/*.{ts,map}",
"!node_modules/**/*.spec.js", "!node_modules/**/*.spec.js",
"!node_modules/@theia/**/test/*", "!node_modules/@theia/**/test/*",