From 5880b24c799c079ef547fb524183263fcaae1c8d Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:23:40 -0400 Subject: [PATCH] bump eslint memory usage (cherry-pick #17724) (#17731) Cherry-picked bump eslint memory usage (#17724) Release Notes: - Increased memory limit for eslint to reduce crashes Co-authored-by: Conrad Irwin --- crates/languages/src/typescript.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rs index 185c10be44a70f362afdf404a1c531ef06f0dbbc..9b6d41451f72a11ecb53a1142060e79be0fb690a 100644 --- a/crates/languages/src/typescript.rs +++ b/crates/languages/src/typescript.rs @@ -58,7 +58,11 @@ fn typescript_server_binary_arguments(server_path: &Path) -> Vec { } fn eslint_server_binary_arguments(server_path: &Path) -> Vec { - vec![server_path.into(), "--stdio".into()] + vec![ + "--max-old-space-size=8192".into(), + server_path.into(), + "--stdio".into(), + ] } pub struct TypeScriptLspAdapter {