Bump vtsls memory limits (#17354)

Release Notes:

- Bump the default memory limit for vtsls from 3GiB to 8GiB
This commit is contained in:
Conrad Irwin 2024-09-04 12:39:24 -06:00 committed by GitHub
parent 01525f17fa
commit de1d301993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -226,6 +226,9 @@ impl LspAdapter for VtslsLspAdapter {
"suggest": {
"completeFunctionCalls": true
},
"tsserver": {
"maxTsServerMemory": 8092
},
"inlayHints": {
"parameterNames": {
"enabled": "all",

View File

@ -46,7 +46,7 @@ Prettier will also be used for TypeScript files by default. To disable this:
## Large projects
`vtsls` may run out of memory on very large projects. You can configure this limit by passing the following options to the language server:
`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:
```json
{
@ -54,9 +54,9 @@ Prettier will also be used for TypeScript files by default. To disable this:
"vtsls": {
"initialization_options": {
// For TypeScript:
"typescript": { "tsserver": { "maxTsServerMemory": 8092 } },
"typescript": { "tsserver": { "maxTsServerMemory": 16184 } },
// For JavaScript:
"javascript": { "tsserver": { "maxTsServerMemory": 8092 } }
"javascript": { "tsserver": { "maxTsServerMemory": 16184 } }
}
}
}