TypeScript: TypeError: path.charCodeAt is not a function in getEncodedRootLength

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.73.0 %8fa188b2b301d36553cbc9ce1b0a146ccb93351f %x64

  • OS Version: 21H2 for home %19044.1889

Steps to Reproduce:

  1. open my work,some ts file
  2. Press ctrl and click on some variable, or just mouse over, to see information about the variable (Indefinite time, sometimes a few minutes, sometimes longer)
  3. image
  4. Prompt to crash five times, no more restarts

normal : image

crash : image
image

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (6 by maintainers)

Most upvoted comments

https://user-images.githubusercontent.com/86919167/201116082-0b80a17d-0a38-462a-a248-100701f38a41.mp4 (did the video break?i cant load it)

Please teach me how to provide more information

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.73.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!