File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const path = require("path");
1818const isCIBuild = process . env [ "CI" ] === "1" ;
1919const isFastTestRun = process . env [ "FAST_TEST_RUN" ] === "1" ;
2020
21+ const dataDir = process . env [ "VSCODE_DATA_DIR" ] ;
22+
2123// "env" in launch.json doesn't seem to work with vscode-test
2224const isDebugRun = ! ( process . env [ "_" ] ?? "" ) . endsWith ( "node_modules/.bin/vscode-test" ) ;
2325
@@ -36,7 +38,7 @@ module.exports = defineConfig({
3638 "--disable-crash-reporter" ,
3739 "--disable-workspace-trust" ,
3840 "--disable-telemetry" ,
39- ] ,
41+ ] . concat ( dataDir ? [ "--user-data-dir" , dataDir ] : [ ] ) ,
4042 mocha : {
4143 ui : "tdd" ,
4244 color : true ,
@@ -65,7 +67,7 @@ module.exports = defineConfig({
6567 "--disable-crash-reporter" ,
6668 "--disable-workspace-trust" ,
6769 "--disable-telemetry" ,
68- ] ,
70+ ] . concat ( dataDir ? [ "--user-data-dir" , dataDir ] : [ ] ) ,
6971 mocha : {
7072 ui : "tdd" ,
7173 color : true ,
Original file line number Diff line number Diff line change @@ -77,4 +77,4 @@ npm run package
7777
7878# Need to set proxy to download VS Code
7979export npm_config_https_proxy=" $HTTPS_PROXY "
80- NO_PROXY= " * " CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output " $PWD /coverage"
80+ VSCODE_DATA_DIR= " $PWD /ud " CI=1 FAST_TEST_RUN=1 npm run coverage -- --coverage-output " $PWD /coverage"
You can’t perform that action at this time.
0 commit comments