انضم إلى نوستر
2025-04-07 13:34:28 CEST

Aral Balkan on Nostr: Hit an interesting limit in the TypeScript LSP¹: Looks like there’s a limit on the ...

Hit an interesting limit in the TypeScript LSP¹:

Looks like there’s a limit on the number of entries an object (constant) can have before the LSP balks. Seems to hit it around 1,343.

(I’m generating an object for an icon library.)

Doesn’t appear to be related to file/memory size (breaking up the same number of entries into several objects works).

Anyone know what limitation exactly I’m hitting (if it’s documented somewhere?) Been searching but couldn’t find any reference to it.

¹ It’s definitely an LSP limit as I tried in VSCode as well to rule out it being a limit in Helix Editor.

#TypeScript #limit #constant #object #LSP