From c9387f8f21b6004ab0f3601dac942f7f9eb7a622 Mon Sep 17 00:00:00 2001 From: Asher Date: Mon, 18 Jul 2022 15:39:19 -0500 Subject: [PATCH] fix: remove default memory limit Having NODE_OPTIONS set is unexpected and although the later flag should override the previous flag it is not certain that will always be the case. Also some users are having issues with the 2 GB limit. --- src/node/wrapper.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node/wrapper.ts b/src/node/wrapper.ts index 40540d3b7714..cf64f5741090 100644 --- a/src/node/wrapper.ts +++ b/src/node/wrapper.ts @@ -322,7 +322,6 @@ export class ParentProcess extends Process { env: { ...process.env, CODE_SERVER_PARENT_PID: process.pid.toString(), - NODE_OPTIONS: `--max-old-space-size=2048 ${process.env.NODE_OPTIONS || ""}`, }, stdio: ["pipe", "pipe", "pipe", "ipc"], })