microsoft / vscode

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

Typescript language service suddenly dies #148124

Closed adamrossmusic closed 2 years ago

adamrossmusic commented 2 years ago

Issue Type: Bug

Typescript language service suddenly dies

VS Code version: Code 1.66.2 (dfd34e8260c270da74b5c2d86d61aee4b6d56977, 2022-04-11T07:49:20.994Z) OS version: Darwin x64 18.7.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|6, 4, 3| |Memory (System)|8.00GB (0.05GB free)| |Process Argv|--crash-reporter-id 58879c26-1b7f-45d1-a0bd-d3b792894300| |Screen Reader|no| |VM|0%|
Extensions (48) Extension|Author (truncated)|Version ---|---|--- rainbow-brackets|2gu|0.0.6 better-comments|aar|3.0.0 scss-lint|ada|0.1.10 vscode-css-formatter|aes|1.0.2 vscode-django|bat|1.10.0 simple-react-snippets|bur|1.2.6 npm-intellisense|chr|1.4.1 bracket-pair-colorizer-2|Coe|0.2.4 python-environment-manager|don|1.0.4 python-extension-pack|don|1.7.0 es7-react-js-snippets|dsz|4.4.3 vscode-html-css|ecm|1.11.0 Solidity|Ele|0.0.58 vscode-great-icons|emm|2.1.86 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 sass-lint|gle|1.0.7 solidity|Jua|0.0.139 vsc-python-indent|Kev|1.15.0 MagicPython|mag|1.1.0 code-beautifier|mic|2.3.3 vscode-scss|mrm|0.10.0 vscode-docker|ms-|1.22.0 csharp|ms-|1.24.4 vscode-kubernetes-tools|ms-|1.3.7 python|ms-|2022.4.1 vscode-pylance|ms-|2022.4.2 remote-containers|ms-|0.231.6 vscode-typescript-tslint-plugin|ms-|1.3.4 language-liquid|nei|0.1.1 autodocstring|njp|0.6.1 prisma|Pri|3.12.0 typescript-hero|rbb|3.0.0 vscode-yaml|red|1.6.0 format-html-in-php|rif|1.7.0 markdown-preview-enhanced|shd|0.6.2 autoimport|ste|1.5.4 vscode-stylelint|sty|1.2.2 open-in-browser|tec|2.0.0 vscode-helm|tec|0.4.0 stylelint|thi|0.51.0 python|tht|0.2.3 helm-intellisense|Tim|0.14.2 vscodeintellicode|Vis|1.2.20 jinja|who|0.0.8 change-case|wma|1.0.0 markdown-all-in-one|yzh|3.4.3 html-css-class-completion|Zig|1.20.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 pythonvsnew555:30457759 vscscmwlcmt:30465135 cppdebugcf:30475217 ```
MigHerCas commented 2 years ago

+1

susususutie commented 2 years ago

+1

mjbvz commented 2 years ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

adamIncep commented 2 years ago

Yes after i had this error, disabled all extensions, besides the Typescript language service, and had the same problem. It was about a NextJS+Typescript+React code base with a lot of dependencies though. It occured on a large file i had to refactor (~1200 lines, multiple components in one tsx)

Don't know about latest version, i will install tomorrow and will try to verify it again.

mjbvz commented 2 years ago

If you see this in VS Code insiders, please share a project that demonstrates the issue so we can investigate

vscodenpa commented 2 years ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!