sublimelsp / LSP-typescript

TypeScript, JavaScript support for Sublime LSP plugin
MIT License
135 stars 11 forks source link

Incorrect annotations linger when reinstalling `node_modules` #255

Open silverwind opened 1 month ago

silverwind commented 1 month ago

When doing a rm -rf node_modules && npm i inside a project, new error annotations will show because typescript from node_modules is temporarily not available. When this happens, LSP-typescript seems falls back to a different configuration where it ignores the tsconfig.json in the project.

After node_modules is present again, these error annotations do not go away and the only reliable way to remove them that I have found is to restart Sublime Text.

rchl commented 4 weeks ago

Are you able to verify whether it behaves the same in VSCode?