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");
18
18
const isCIBuild = process . env [ "CI" ] === "1" ;
19
19
const isFastTestRun = process . env [ "FAST_TEST_RUN" ] === "1" ;
20
20
21
+ const dataDir = process . env [ "VSCODE_DATA_DIR" ] ;
22
+
21
23
// "env" in launch.json doesn't seem to work with vscode-test
22
24
const isDebugRun = ! ( process . env [ "_" ] ?? "" ) . endsWith ( "node_modules/.bin/vscode-test" ) ;
23
25
@@ -36,7 +38,7 @@ module.exports = defineConfig({
36
38
"--disable-crash-reporter" ,
37
39
"--disable-workspace-trust" ,
38
40
"--disable-telemetry" ,
39
- ] ,
41
+ ] . concat ( dataDir ? [ "--user-data-dir" , dataDir ] : [ ] ) ,
40
42
mocha : {
41
43
ui : "tdd" ,
42
44
color : true ,
@@ -65,7 +67,7 @@ module.exports = defineConfig({
65
67
"--disable-crash-reporter" ,
66
68
"--disable-workspace-trust" ,
67
69
"--disable-telemetry" ,
68
- ] ,
70
+ ] . concat ( dataDir ? [ "--user-data-dir" , dataDir ] : [ ] ) ,
69
71
mocha : {
70
72
ui : "tdd" ,
71
73
color : true ,
Original file line number Diff line number Diff line change @@ -77,4 +77,4 @@ npm run package
77
77
78
78
# Need to set proxy to download VS Code
79
79
export 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