Skip to content

Commit

Permalink
Use custom directory when installing dependent extensions
Browse files Browse the repository at this point in the history
To avoid interference pf the testing code with existing extensions
and to make sure that the VSCode has only necessary extensions installed for test run
  • Loading branch information
EduardSergeev committed Sep 18, 2020
1 parent fa5ded6 commit bd29729
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ async function main() {
'jcanero.hoogle-vscode',
'dramforever.vscode-ghc-simple'
];

const extensionsDir = path.resolve(path.dirname(cliPath), '..', 'extensions');

for(const extension of dependencies) {
cp.spawnSync(cliPath, ['--install-extension', extension], {
cp.spawnSync(cliPath, ['--extensions-dir', extensionsDir, '--install-extension', extension], {
encoding: 'utf-8',
stdio: 'inherit'
});
Expand All @@ -41,6 +44,7 @@ async function main() {
'--new-window',
'--disable-gpu',
'--disable-updates',
'--extensions-dir', extensionsDir,
'--logExtensionHostCommunication',
'--skip-getting-started',
'--skip-release-notes',
Expand Down

0 comments on commit bd29729

Please sign in to comment.