mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 03:50:13 +10:00
fix: disable updating the builtin extensions (#1062)
This commit is contained in:
15
patches/fix-builtin-extensions.patch
Normal file
15
patches/fix-builtin-extensions.patch
Normal file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user