Browse Source

fix: disable updating the builtin extensions (#1062)

Baptiste Augrain 3 years ago
parent
commit
afe72aba83
1 changed files with 15 additions and 0 deletions
  1. 15 0
      patches/fix-builtin-extensions.patch

+ 15 - 0
patches/fix-builtin-extensions.patch

@@ -0,0 +1,15 @@
+diff --git a/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts b/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
+index 2b0a0fa..499cff4 100644
+--- a/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
++++ b/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts
+@@ -206,6 +206,10 @@ export class Extension implements IExtension {
+ 		if (!this.gallery || !this.local) {
+ 			return false;
+ 		}
++		// Do not allow updating system extensions
++		if (this.type === ExtensionType.System) {
++			return false;
++		}
+ 		if (!this.local.preRelease && this.gallery.properties.isPreReleaseVersion) {
+ 			return false;
+ 		}