TypeScript tip: VSCode's TypeScript server hangs sometimes


TypeScript tip: VSCode's TypeScript server hangs sometimes. When this happens, it will say something is an invalid type, when it's actually valid.

If this occurs, restart the TypeScript server using the command prompt. (cmd+shift+p on Mac)

#typescript

Oh, and oddly, this option can only be found in the command menu when a TS file is open. So if you don't see it when searching, open a TS file.

View original on X