-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: location of possible drop-in folder for VSIX
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |