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
+8 -1
View File
@@ -23,8 +23,15 @@ set VSCODE_DEV=1
set ELECTRON_ENABLE_LOGGING=1
set ELECTRON_ENABLE_STACK_DUMPING=1
set DISABLE_TEST_EXTENSION="--disable-extension=vscode.vscode-api-tests"
for %%A in (%*) do (
if "%%~A"=="--extensionTestsPath" (
set DISABLE_TEST_EXTENSION=""
)
)
:: Launch Code
%CODE% --inspect=5874 out\cli.js %~dp0.. %*
%CODE% --inspect=5874 out\cli.js %~dp0.. %DISABLE_TEST_EXTENSION% %*
goto end
:builtin
+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 "$@"
-1
View File
@@ -31,7 +31,6 @@ for %%A in (%*) do (
)
:: Launch Code
%CODE% . %DISABLE_TEST_EXTENSION% %*
goto end