microsoft / vscode

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

TypeScript IntelliSense not working when writing certain code patterns #187981

Closed mudassiriqball closed 1 year ago

mudassiriqball commented 1 year ago

Type: Bug

While coding suddenly typescript IntelliSense stops working. Mostly it happens when I write something like <MyComponent TypeScript IntelliSense stops working unexpectedly while coding, mainly when writing specific code patterns. This issue commonly occurs when entering code similar to the following example:

<MyComponent onChange={() => setState({ ...state, abc: true })} />

After typing abc: true, IntelliSense freezes or becomes unresponsive. However, the issue may also occur without the specific case mentioned.

Temporary Solution To restore TypeScript IntelliSense functionality, it is necessary to disable all installed extensions. After approximately one minute, the extensions must be re-enabled, and it takes an additional 2 to 3 minutes for TypeScript IntelliSense to start working again

VS Code version: Code - Insiders 1.81.0-insider (2f1013a310bbd74410e74fad99497841edad0eda, 2023-07-13T05:52:52.383Z) OS version: Darwin x64 22.4.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |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
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|11, 9, 7| |Memory (System)|16.00GB (3.64GB free)| |Process Argv|--crash-reporter-id 1cf98b57-da0b-4aff-b8dc-5c07dbb2fb66| |Screen Reader|no| |VM|0%|
Extensions (20) Extension|Author (truncated)|Version ---|---|--- vscode-tailwindcss|bra|0.9.11 simple-react-snippets|bur|1.2.7 path-intellisense|chr|2.8.4 vscode-eslint|dba|2.4.2 gitlens|eam|14.1.0 vscode-great-icons|emm|2.1.93 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 lintlens|ghm|7.4.1 search-node-modules|jas|1.3.0 material-icon-theme|PKi|4.29.0 vscode-react-refactor|pla|1.1.3 LiveServer|rit|5.7.9 react-snippets|run|0.1.3 vs-code-prettier-eslint|rve|5.1.0 code-spell-checker|str|2.20.5 vscode-icons|vsc|12.4.0 vscode-todo-highlight|way|1.0.5 tailwind-snippets|Zar|1.0.2
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythontb:30258533 pythonptprofiler:30281269 vshan820:30294714 vscod805cf:30301675 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30404738 py29gd2263:30784851 vsclangdf:30492506 c4g48928:30535728 dsvsc012:30540252 pynewext54:30618038 pylantcb52:30590116 pyind779:30611226 pythonsymbol12:30651887 showlangstatbar:30737417 pythonms35:30671666 ecj1e332:30687743 pythonfmttext:30716741 pythoncmvfstr:30726892 fixshowwlkth:30771523 showindicator:30766888 pythongtdpath:30726887 bgfeh915:30780428 gsofb:30778559 pythonnosmt12:30779711 pythonidxpt:30768918 pythondjangots:30768917 pythonnoceb:30776497 copilotsettingt:30767686 e537b577:30772214 h0f32768:30779712 synctok:30783813 dsvsc013:30777762 dsvsc014:30777825 diffeditorv2:30786206 ```
ynnck commented 1 year ago

Experiencing the same issue. Have tried changing which Typescript version to use, removed all local files, reinstalled VS code. Gets stuck on 'Loading IntelliSense status' indefinitely.

Types do not load, 'Go to definition' does not work (shortcut + menu selection), no autocomplete options etc.

mjbvz commented 1 year ago

Can you share an example project which demonstrates this issue?

vscodenpa commented 1 year 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!