Vscode: Go To Definition too slow on 1.33

Created on 8 Apr 2019  路  7Comments  路  Source: microsoft/vscode

The bug is also present for me in the latest insiders build and when running without extensions on both builds.

  • VSCode Version: 1.33
  • OS Version: Mac OS 10.14.3

Steps to Reproduce:

  1. Update VS Code to 1.33
  2. Try to click on Go To Definition in a .tsx in a create-react-app project (it's a large project, 928mb, including node_modules. Most of it in TypeScript). The operation will take around 2 minutes. I downgraded to 1.32 and the behavior was gone.

Also, the Code Helper process goes to 100% while the operation is going on. Not sure if related to the issue stated.

*duplicate javascript

Most helpful comment

As mentioned here: https://github.com/Microsoft/vscode/issues/71886 try to delete TS cache.

Windows

C:\Users\(your username)\AppData\Local\Microsoft\TypeScript\

Mac

/Users/(your username)/Library/Caches/typescript

All 7 comments

As mentioned here: https://github.com/Microsoft/vscode/issues/71886 try to delete TS cache.

Windows

C:\Users\(your username)\AppData\Local\Microsoft\TypeScript\

Mac

/Users/(your username)/Library/Caches/typescript

@svipas will try it out after work and will update the issue accordingly.

@svipas It worked, thanks! But it's still noticeably slower than before. I'll have to go back to the previous version.

I was noticing slowness as well around "go to definition" along with intellisense, rolling back a version was the solution I had to take as well. Deleting TS cache didn't work for me.

Duplicate of #71751

See https://github.com/Microsoft/vscode/issues/71751#issuecomment-480126916 for workarounds

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

Just for the record, running npm install @types/[email protected] on my project, as suggested in #71751 solved my problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jez9999 picture jez9999  路  234Comments

Tyriar picture Tyriar  路  200Comments

hsdk123 picture hsdk123  路  263Comments

TurkeyMan picture TurkeyMan  路  411Comments

lw-schick picture lw-schick  路  229Comments