mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-27 13:16:43 +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 os = require('os');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
// Enables the discovery of the VS Code extensions in the embedded `plugins` folder in the final app.
|
// 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 = [
|
||||||
process.env.THEIA_PLUGINS,
|
process.env.THEIA_PLUGINS,
|
||||||
`local-dir:${path.resolve(os.homedir(), '.arduinoProIDE', 'plugins')}`
|
`local-dir:${path.resolve(os.homedir(), '.arduinoIDE', 'plugins')}`,
|
||||||
].filter(Boolean).join(',');
|
]
|
||||||
|
.filter(Boolean)
|
||||||
|
.join(',');
|
||||||
require('../src-gen/frontend/electron-main.js');
|
require('../src-gen/frontend/electron-main.js');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user