File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,16 @@ set VSCODE_CLI=1
23
23
set ELECTRON_ENABLE_LOGGING = 1
24
24
set ELECTRON_ENABLE_STACK_DUMPING = 1
25
25
26
+ set DISABLE_TEST_EXTENSION = " --disable-extension=vscode.vscode-api-tests"
27
+ for %%A in (%* ) do (
28
+ if " %%~A " == " --extensionTestsPath" (
29
+ set DISABLE_TEST_EXTENSION = " "
30
+ )
31
+ )
32
+
26
33
:: Launch Code
27
34
28
- %CODE% . %*
35
+ %CODE% . %DISABLE_TEST_EXTENSION% % *
29
36
goto end
30
37
31
38
:builtin
Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ function code() {
42
42
export ELECTRON_ENABLE_STACK_DUMPING=1
43
43
export ELECTRON_ENABLE_LOGGING=1
44
44
45
+ DISABLE_TEST_EXTENSION=" --disable-extension=vscode.vscode-api-tests"
46
+ if [[ " $@ " == * " --extensionTestsPath" * ]]; then
47
+ DISABLE_TEST_EXTENSION=" "
48
+ fi
49
+
45
50
# Launch Code
46
- exec " $CODE " . " $@ "
51
+ exec " $CODE " . $DISABLE_TEST_EXTENSION " $@ "
47
52
}
48
53
49
54
function code-wsl()
You can’t perform that action at this time.
0 commit comments