microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.27k stars 28.56k forks source link

js/ts language server keeps crashing #202282

Closed tracy-codes closed 8 months ago

tracy-codes commented 8 months ago

Type: Bug

With vscode open, I just see Initializing JS/TS language features over and over again, and get repeated notifications that TS language server has crashed multiple times. Unsure of how to resolve.

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:47:11.635Z) OS version: Linux x64 6.6.10-arch1-1 Modes: Remote OS version: Linux x64 6.2.0-37-generic

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 x 4900)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|1, 1, 1| |Memory (System)|62.71GB (49.85GB free)| |Process Argv|--unity-launch| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|plasma| |XDG_CURRENT_DESKTOP|KDE| |XDG_SESSION_DESKTOP|KDE| |XDG_SESSION_TYPE|x11| |Item|Value| |---|---| |Remote|SSH: devbox| |OS|Linux x64 6.2.0-37-generic| |CPUs|AMD EPYC 7513 32-Core Processor (48 x 2594)| |Memory (System)|251.31GB (241.03GB free)| |VM|0%|
Extensions (68) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 es7-react-js-snippets|dsz|4.4.3 LogFileHighlighter|emi|2.17.0 auto-rename-tag|for|0.1.10 vscode-graphql-syntax|Gra|1.2.3 vscode-liquid-snippets|kil|2.0.3 dotenv|mik|1.0.1 remote-containers|ms-|0.327.0 remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.81.8 remote-explorer|ms-|0.4.1 language-liquid|nei|0.1.1 material-icon-theme|PKi|4.33.0 sqlite-viewer|qwt|0.3.13 slim|sia|0.1.2 svg-preview|Sim|2.8.3 pdf|tom|1.2.2 vscode-ruby|win|0.28.0 JavaScriptSnippets|xab|1.8.0 svelte-intellisense|ard|0.7.1 vscode-anchor|Ayu|0.2.6 random-string-password-generator|bib|1.0.2 vscode-tailwindcss|bra|0.10.5 npm-intellisense|chr|1.4.5 vscode-eslint|dba|2.4.2 vscode-wasm|dts|1.4.1 gitlens|eam|14.6.1 prettier-vscode|esb|10.1.0 comment-anchors|Exo|1.10.3 flatbuffers|gab|0.1.0 vscode-pull-request-github|Git|0.78.1 gitpod-remote-ssh|git|0.0.50 go|gol|0.40.1 terraform|has|2.29.1 auto-comment-blocks|kev|1.0.1 json2csv|kha|0.0.1 vscode-auto-timestamp|lpu|0.0.8 rainbow-csv|mec|3.11.0 vscode-kubernetes-tools|ms-|1.3.15 python|ms-|2023.22.1 vscode-pylance|ms-|2023.12.1 cmake-tools|ms-|1.16.32 cpptools|ms-|1.18.5 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.8.22 vscode-typescript-next|ms-|5.4.20240110 vs-sequential-number|nep|1.1.0 uuid-generator|net|0.0.5 csv-to-table|php|1.4.0 prisma|Pri|5.8.0 vscode-commons|red|0.0.6 vscode-yaml|red|1.14.0 rust-analyzer|rus|0.3.1799 firedbg-rust|Sea|0.1.6 shopify-liquid|sis|4.0.1 numbermonger|sof|0.5.0 even-better-toml|tam|0.19.2 tauri-vscode|tau|0.2.6 cmake|twx|0.0.17 vscode-mdx|uni|1.6.1 vscode-conventional-commits|viv|1.25.0 vscode-import-cost|wix|3.3.0 txt-syntax|xsh|0.2.2 pretty-ts-errors|Yoa|0.5.3 markdown-pdf|yza|1.5.0 markdown-all-in-one|yzh|3.6.1 commentbars|zfz|0.0.10 (8 theme extensions excluded)
tracy-codes commented 8 months ago

Resolved by adding

"typescript.tsserver.maxTsServerMemory": 32000,

to my vscode config file. 32gb is probably overkill but I think my 512gb machine will be fine.