DenoDDeno
Powered by
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
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.
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
deno 2.6.4 (stable, release, x86_64-unknown-linux-gnu)
v8 14.2.231.17-rusty
typescript 5.9.2
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deno LSP not narrowing types
BreadBBread / help
9mo ago
jsdoc `@import` ignored by `deno check` but not by LSP
strmnnSstrmnn / help
2y ago
Super slow LSP with Deno + VSCode
AlmajuAAlmaju / help
15mo ago