ShelllerS
Denoβ€’2mo agoβ€’
8 replies
Shelller

Deno LSP: Severe slowdown/crash triggered by recursive conditional types with generic arrow function

✍️VS Code / LSPπŸ§‘β€πŸ’»JS / TS Development
I have found some weird bug where the Deno LSP loops and crashes, I've tried to look up the
idea.log
,
but there were no stack traces besides some error logs about timeouts and restarts.

The recreational code snippet will be posted down below to avoid the character limitations.

The bug is possibly related to TypeScript's
Type instantiation is excessively deep and possibly infinite.
.
I've tried runnning my snippet without the LSP and noted that TypeScript has the same sort of problems without being unresponsive.

deno 2.6.4 (stable, release, x86_64-unknown-linux-gnu)
v8 14.2.231.17-rusty
typescript 5.9.2
Was this page helpful?