mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-19 12:57:17 +00:00
fix: location of possible drop-in folder for VSIX
Closes #1851 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
cb2a371263
commit
7cc252fc36
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user