From 1d6c167cecebddb989342e34769210b3955db9da Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 5 Mar 2026 18:16:22 -0900 Subject: [PATCH] Try lowering mangle workers to 2 --- patches/fix-build.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/patches/fix-build.diff b/patches/fix-build.diff index 3d9ed2c7e..38befaace 100644 --- a/patches/fix-build.diff +++ b/patches/fix-build.diff @@ -7,6 +7,9 @@ ERROR: Protected fields have been made PUBLIC. This hurts minification and is th No idea how VS Code is dealing with this in their own builds. +Additionally, in CI the build keeps getting terminated, possibly from running +out of memory (there is no error message, it simply says it was canceled). + Index: code-server/lib/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.ts =================================================================== --- code-server.orig/lib/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.ts @@ -20,3 +23,16 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/ch super.setEditorVisible(visible); if (visible) { this.telemetryService.publicLog2<{}, ChatDebugPanelOpenedClassification>('chatDebugPanelOpened'); +Index: code-server/lib/vscode/build/lib/mangle/index.ts +=================================================================== +--- code-server.orig/lib/vscode/build/lib/mangle/index.ts ++++ code-server/lib/vscode/build/lib/mangle/index.ts +@@ -430,7 +430,7 @@ export class Mangler { + this.config = config; + + this.renameWorkerPool = workerpool.pool(path.join(import.meta.dirname, 'renameWorker.ts'), { +- maxWorkers: 4, ++ maxWorkers: 2, + minWorkers: 'max' + }); + }