Disable api-test extension when running code.sh directly (#214521)

This commit is contained in:
Rob Lourens
2024-06-06 16:12:17 -07:00
committed by GitHub
parent 96151fb331
commit 3ea3162dd4
2 changed files with 14 additions and 2 deletions

View File

@@ -42,8 +42,13 @@ function code() {
export ELECTRON_ENABLE_STACK_DUMPING=1
export ELECTRON_ENABLE_LOGGING=1
DISABLE_TEST_EXTENSION="--disable-extension=vscode.vscode-api-tests"
if [[ "$@" == *"--extensionTestsPath"* ]]; then
DISABLE_TEST_EXTENSION=""
fi
# Launch Code
exec "$CODE" . "$@"
exec "$CODE" . $DISABLE_TEST_EXTENSION "$@"
}
function code-wsl()