mirror of
https://github.com/coder/code-server.git
synced 2024-12-02 08:03:37 +03:00
3367e1ad4e
* chore: upgrade Code to 1.73.0 This upgrades Code to 1.73.0 via the tag. * chore: refresh integration patch * chore: clean up base-path patch Only change here was they moved lib/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts so I had to update it. Code still looks the same though. * chore: refresh proposed-api patch * chore: update marketplace patch Simlar to a previous patch, the location of lib/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts changed so I had to update this patch. No changes to code itself. * chore: update hash in webview patch I believe there was only one to update but I may have missed one. * chore: refresh disable-builtin-ext-update.diff * chore: refresh update-check quilt couldn't apply it so I had to add one change in manually to lib/vscode/src/vs/server/node/serverEnvironmentService.ts * chore: refresh logout patch * chore: refresh proxy-uri patch * chore: refresh local-storage patch * chore: refresh sourcemaps patch * chore: refresh disable-downloads patch * chore: refresh telemetry patch * refactor: re-apply display-language patch This kinda got removed but I added it back in. * refactor: drop exec-argv patch This was accepted upstream! :tada * chore: refresh getting-started patch * fixup: add missing slash in marketplace * fixup: update notes proposed-api patch * fixup: support this.args.log as string Seems like upstream now uses a string[] for this. For now, support string. See2b50ab06b1
* Revert "fixup: support this.args.log as string" This reverts commit78c02a1f13
. * fixup!: add log to toCodeArgs This was changed upstream from `string` to `string[]` so now we convert to an array in `toCodeArgs`. See78c02a1f13
* fixup: update telemetry description
32 lines
1.5 KiB
Diff
32 lines
1.5 KiB
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
|
|
@@ -237,6 +237,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;
|
|
}
|
|
@@ -1237,6 +1241,10 @@ export class ExtensionsWorkbenchService
|
|
// Skip if check updates only for builtin extensions and current extension is not builtin.
|
|
continue;
|
|
}
|
|
+ if (installed.type !== ExtensionType.User) {
|
|
+ // Never update builtin extensions.
|
|
+ continue;
|
|
+ }
|
|
if (installed.isBuiltin && (!installed.local?.identifier.uuid || (!isWeb && this.productService.quality === 'stable'))) {
|
|
// Skip checking updates for a builtin extension if it does not has Marketplace identifier or the current product is VS Code Desktop stable.
|
|
continue;
|