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