Allow to hide Copilot via user setting and policy (fix #249615) (#261798)

This commit is contained in:
Benjamin Pasero
2025-08-15 16:36:46 +02:00
committed by GitHub
parent afb9516426
commit e2423d6644
9 changed files with 79 additions and 26 deletions
+7 -1
View File
@@ -29,12 +29,18 @@ function code() {
return
fi
# Disable test extension
DISABLE_TEST_EXTENSION="--disable-extension=vscode.vscode-api-tests"
if [[ "$@" == *"--extensionTestsPath"* ]]; then
DISABLE_TEST_EXTENSION=""
fi
ELECTRON_RUN_AS_NODE=1 \
NODE_ENV=development \
VSCODE_DEV=1 \
ELECTRON_ENABLE_LOGGING=1 \
ELECTRON_ENABLE_STACK_DUMPING=1 \
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . "$@"
"$CODE" --inspect=5874 "$ROOT/out/cli.js" . $DISABLE_TEST_EXTENSION "$@"
}
code "$@"