Skip to content

Commit 7cc252f

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: location of possible drop-in folder for VSIX
Closes #1851 Signed-off-by: Akos Kitta <[email protected]>
1 parent cb2a371 commit 7cc252f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
const os = require('os');
22
const path = require('path');
33
// 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')}`;
4+
process.env.THEIA_DEFAULT_PLUGINS = `local-dir:${path.resolve(
5+
__dirname,
6+
'..',
7+
'plugins'
8+
)}`;
59
process.env.THEIA_PLUGINS = [
6-
process.env.THEIA_PLUGINS,
7-
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
8-
].filter(Boolean).join(',');
10+
process.env.THEIA_PLUGINS,
11+
`local-dir:${path.resolve(os.homedir(), '.arduinoIDE', 'plugins')}`,
12+
]
13+
.filter(Boolean)
14+
.join(',');
915
require('../src-gen/frontend/electron-main.js');

0 commit comments

Comments
 (0)