Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Set the default value of tsserver to 8 GiB instead of 7.9 GiB (#61406)

Jiaxiang Zhangbb87c47c92d0
diff --git a/crates/languages/src/vtsls.rs b/crates/languages/src/vtsls.rs
index 5be98804d69..806ce7ff11d 100644
--- a/crates/languages/src/vtsls.rs
+++ b/crates/languages/src/vtsls.rs
@@ -281,7 +281,7 @@ impl LspAdapter for VtslsLspAdapter {
"showOnAllFunctions": true
},
"tsserver": {
- "maxTsServerMemory": 8092
+ "maxTsServerMemory": 8192
},
});
diff --git a/docs/src/languages/typescript.md b/docs/src/languages/typescript.md
index d67c65c248b..108e6e34d47 100644
--- a/docs/src/languages/typescript.md
+++ b/docs/src/languages/typescript.md
@@ -80,7 +80,7 @@ To get all the features (autocomplete, linting, etc.) from the [Tailwind CSS lan
## Large projects
-`vtsls` may run out of memory on very large projects. We default the limit to 8092 (8 GiB) vs. the default of 3072 but this may not be sufficient for you:
+`vtsls` may run out of memory on very large projects. We default the limit to 8192 (8 GiB) vs. the default of 3072 but this may not be sufficient for you:
```json [settings]
{
@@ -88,9 +88,9 @@ To get all the features (autocomplete, linting, etc.) from the [Tailwind CSS lan
"vtsls": {
"settings": {
// For TypeScript:
- "typescript": { "tsserver": { "maxTsServerMemory": 16184 } },
+ "typescript": { "tsserver": { "maxTsServerMemory": 16384 } },
// For JavaScript:
- "javascript": { "tsserver": { "maxTsServerMemory": 16184 } }
+ "javascript": { "tsserver": { "maxTsServerMemory": 16384 } }
}
}
}