mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Disable api-test extension when running code.sh directly (#214521)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user