2022-05-05 05:58:49 +08:00
|
|
|
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
|
2024-06-07 07:02:13 +08:00
|
|
|
@@ -285,6 +285,10 @@ export class Extension implements IExten
|
2022-06-22 05:51:46 +08:00
|
|
|
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;
|
|
|
|
}
|