mirror of
https://github.com/coder/code-server.git
synced 2024-11-22 02:44:44 +03:00
fc6064dcd3
* Update Code to 1.94.2 * Convert from yarn to npm This is to match VS Code. We were already partially using npm for the releases so this is some nice alignment. * Update caniuse-lite This was complaining on every unit test. * Update eslint I was having a bunch of dependency conflicts and eslint seemed to be the culprit so I just removed it and set it up again, since it seems things have changed quite a bit. * Update test dependencies I was getting oom when running the unit tests...updating seems to work. * Remove package.json `scripts` property in release The new pre-install script was being included, which is dev-only. This was always the intent; did not realize jq's merge was recursive. * Remove jest and devDependencies in release as well * Update test extension dependencies This appears to be conflicting with the root dependencies. * Fix playwright exec npm does not let you run binaries like yarn does, as far as I know. * Fix import of server-main.js * Fix several tests by waiting for selectors
21 lines
949 B
Diff
21 lines
949 B
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
|
|
@@ -315,6 +315,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;
|
|
}
|