Skip to content

Commit

Permalink
fix: location of possible drop-in folder for VSIX
Browse files Browse the repository at this point in the history
Closes #1851

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
  • Loading branch information
Akos Kitta committed Apr 14, 2023
1 parent cb2a371 commit 3676960
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions electron/build/scripts/arduino-ide-electron-main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
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_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(',');
process.env.THEIA_PLUGINS,
`local-dir:${path.resolve(os.homedir(), '.arduinoIDE', 'plugins')}`,
]
.filter(Boolean)
.join(',');
require('../src-gen/frontend/electron-main.js');

0 comments on commit 3676960

Please sign in to comment.