Skip to content

Commit 16cb2cf

Browse files
author
Akos Kitta
committed
ATL-240: Fixed the VS Code extensions in the app.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent e7a134a commit 16cb2cf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const os = require('os');
2+
const path = require('path');
3+
// Enables the discovery of the VS Code extensions in the embedded `plugins` folder in the final app.
4+
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(__dirname, '..', 'plugins')}`;
5+
process.env.THEIA_PLUGINS = [
6+
process.env.THEIA_PLUGINS,
7+
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
8+
].filter(Boolean).join(',');
9+
require('../src-gen/frontend/electron-main.js');

electron/build/template-package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"main": "src-gen/frontend/electron-main.js",
2+
"main": "scripts/arduino-pro-ide-electron-main.js",
33
"author": "Arduino SA",
44
"resolutions": {
55
"**/fs-extra": "^4.0.3"
@@ -54,6 +54,7 @@
5454
"files": [
5555
"src-gen",
5656
"lib",
57+
"scripts",
5758
"!node_modules/**/*.{ts,map}",
5859
"!node_modules/**/*.spec.js",
5960
"!node_modules/@theia/**/test/*",

0 commit comments

Comments
 (0)