bump eslint memory usage (cherry-pick #17724) (#17731)
gcp-cherry-pick-bot[bot]
and
Conrad Irwin
created
Cherry-picked bump eslint memory usage (#17724)
Release Notes:
- Increased memory limit for eslint to reduce crashes
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Change summary
crates/languages/src/typescript.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Detailed changes
@@ -58,7 +58,11 @@ fn typescript_server_binary_arguments(server_path: &Path) -> Vec<OsString> {
}
fn eslint_server_binary_arguments(server_path: &Path) -> Vec<OsString> {
- vec![server_path.into(), "--stdio".into()]
+ vec![
+ "--max-old-space-size=8192".into(),
+ server_path.into(),
+ "--stdio".into(),
+ ]
}
pub struct TypeScriptLspAdapter {