Sublime Forum

Typescript autocomplete bug

#1

I have this bug, once Build 4121 was released
I hoped it will be fixed in next build, but build 4143 is released and it’s still there.

So the problem is:
Autocomplete stops working randomly. Mostly after IDE finds a syntax error. If it happens, only closing the file and opening again make autocomplete to work again. Super annoying.

AFAIK it happens only in TypeScript files. But maybe others too.
OS: ubuntu 20
Node: 16.18

I have TypeScript package installed. Maybe it’s related to the package. But again, there was no problem before build 4121 (or maybe 4126, somewhere at end of 2021)

0 Likes

#2

MS’s TypeScript package has issues but is no longer maintained. Hence the package has even been restricted to ST3 only.

ST4 provides a far superior typescript syntax definition out of the box and intellisense like features are available via LSP and LSP-typescript packages.

1 Like

#3

Hey, thanks. I removed TypeScript package and looks like autocomplete always work now.
But there’s another issue. Seems like there’s no errors anymore.
I mean even if there’s a syntax or type error in the code, sublime doesn’t highlight it.

0 Likes

#4

Similar issue:

Looks like there’s no solution tho

0 Likes

#5

Ok, I see you mentioned LSP and LSP-typescript packages.
I installed them and errors work now.
Thank you!

1 Like