VSCode TypeScript is Stuck!?
Brad Bodine

Brad Bodine @bradbodine-dev

Location:
Huntsville, AL
Joined:
Jul 21, 2018

VSCode TypeScript is Stuck!?

Publish Date: Jan 11 '24
8 2

TypeScript Code with an error

How many times have you seen this little squiggley in your code and you are sure it shouldn't be there? Happens to me quite a lot. Usually when I install a new package and TypeScript doesn't seem to pick it up. Well there is a quick way to fix it (if it really shouldn't be there).

While you are focused on a typescript file (.ts), open the command prompt cmd + shift + p. Type "restart" in the prompt and look for "TypeScript: Restart TS Server".

Now, assuming you don't have a type or lint error, you will be good to go again.

Comments 2 total

  • José Pablo Ramírez Vargas
    José Pablo Ramírez VargasJan 11, 2024

    I have been doing "Reload window". I suppose this restart thing is probably a bit quicker. Thanks.

    • Brad Bodine
      Brad BodineJan 11, 2024

      That's what I did too. Reload Window will restart all of your extensions.

Add comment