Skip to content

Commit 1d6c167

Browse files
committed
Try lowering mangle workers to 2
1 parent db3d2a0 commit 1d6c167

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

patches/fix-build.diff

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ERROR: Protected fields have been made PUBLIC. This hurts minification and is th
77

88
No idea how VS Code is dealing with this in their own builds.
99

10+
Additionally, in CI the build keeps getting terminated, possibly from running
11+
out of memory (there is no error message, it simply says it was canceled).
12+
1013
Index: code-server/lib/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.ts
1114
===================================================================
1215
--- 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
2023
super.setEditorVisible(visible);
2124
if (visible) {
2225
this.telemetryService.publicLog2<{}, ChatDebugPanelOpenedClassification>('chatDebugPanelOpened');
26+
Index: code-server/lib/vscode/build/lib/mangle/index.ts
27+
===================================================================
28+
--- code-server.orig/lib/vscode/build/lib/mangle/index.ts
29+
+++ code-server/lib/vscode/build/lib/mangle/index.ts
30+
@@ -430,7 +430,7 @@ export class Mangler {
31+
this.config = config;
32+
33+
this.renameWorkerPool = workerpool.pool(path.join(import.meta.dirname, 'renameWorker.ts'), {
34+
- maxWorkers: 4,
35+
+ maxWorkers: 2,
36+
minWorkers: 'max'
37+
});
38+
}

0 commit comments

Comments
 (0)