efce00582b
* chore: update Code to 1.72.2 * chore: refresh integration patch * chore: refresh base-path * chore: refresh proposed-api patch * chore: refresh marketplace patch * chore: refresh webview patch * chore: refresh disable-builtin patch * chore: refresh logout, update-check patches * chor: refresh proxy-uri patch * fix: delete unique-db patch This was supposed to be removed in https://github.com/coder/code-server/pull/5519 Looks like I didn't update the series or actually delete the patch. * fix: drop log-level patch This was merged upstream! * chore: refresh local-storage patch * chore: refresh service-worker patch * chore: refresh sourcemaps patch * chore: refresh disable-downloads patch * chore: refresh telemetry patch * chore: refresh language patch * chore: refresh cli-window-open patch * Revert "fix: delete unique-db patch" This reverts commit ca0506c5f6b49da5644697bb2f5b29d135a8d201. * fixup!: rm extra spaces integration patch * fixup: space * fixup! update unique-db patch * fixup!: update hash in webview patch * fixup! update marketplace patch * fixup!: remove comma
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
Diff
Prevent builtin extensions from being updated
|
|
|
|
Updating builtin extensions from the marketplace prevents us from patching them
|
|
(for example out GitHub authentication patches).
|
|
|
|
Index: code-server/lib/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
|
|
===================================================================
|
|
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
|
|
+++ code-server/lib/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
|
|
@@ -237,6 +237,10 @@ export class Extension implements IExten
|
|
if (this.type === ExtensionType.System && this.productService.quality === 'stable') {
|
|
return false;
|
|
}
|
|
+ // Do not update builtin extensions.
|
|
+ if (this.type !== ExtensionType.User) {
|
|
+ return false;
|
|
+ }
|
|
if (!this.local.preRelease && this.gallery.properties.isPreReleaseVersion) {
|
|
return false;
|
|
}
|
|
@@ -1234,6 +1238,10 @@ export class ExtensionsWorkbenchService
|
|
// Skip if check updates only for builtin extensions and current extension is not builtin.
|
|
continue;
|
|
}
|
|
+ if (installed.type !== ExtensionType.User) {
|
|
+ // Never update builtin extensions.
|
|
+ continue;
|
|
+ }
|
|
if (installed.isBuiltin && (!installed.local?.identifier.uuid || (!isWeb && this.productService.quality === 'stable'))) {
|
|
// Skip checking updates for a builtin extension if it does not has Marketplace identifier or the current product is VS Code Desktop stable.
|
|
continue;
|