feat: set update.mode to none when updates are disabled (#2507)

This commit is contained in:
Baptiste Augrain
2025-09-12 13:02:55 +02:00
committed by GitHub
parent f6b143dbd6
commit dd8511cc6b
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
diff --git a/src/vs/platform/update/common/update.config.contribution.ts b/src/vs/platform/update/common/update.config.contribution.ts
index d96926b..43f5d90 100644
--- a/src/vs/platform/update/common/update.config.contribution.ts
+++ b/src/vs/platform/update/common/update.config.contribution.ts
@@ -20,3 +20,3 @@ configurationRegistry.registerConfiguration({
enum: ['none', 'manual', 'start', 'default'],
- default: 'default',
+ default: 'none',
scope: ConfigurationScope.APPLICATION,

View File

@@ -25,6 +25,10 @@ echo "BINARY_NAME=\"${BINARY_NAME}\""
echo "GH_REPO_PATH=\"${GH_REPO_PATH}\""
echo "ORG_NAME=\"${ORG_NAME}\""
if [[ "${DISABLE_UPDATE}" == "yes" ]]; then
mv ../patches/disable-update.patch.yet ../patches/disable-update.patch
fi
for file in ../patches/*.patch; do
if [[ -f "${file}" ]]; then
apply_patch "${file}"