SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 16 Rust

fix(lsp): handle parser panics while parsing documents (#34640)

This prevents malformed source files that trigger a parser panic from
crashing the Deno language server. The LSP document parser now catches
parser unwinds and records them as module parse errors, allowing the
server to continue and TypeScript diagnostics to still run.

It also updates test-only rustls provider installs to use the
workspace-configured aws-lc provider so the Deno lib test target
compiles with the current dependency features.

Tests:
- cargo fmt --check
- cargo test -p deno --lib
lsp::documents::tests::test_parse_invalid_tsx_with_jsx_pragmas_does_not_panic
- cargo test -p deno --lib lsp::documents::tests

Fixes https://github.com/denoland/deno/issues/32098
Closes denoland/divybot#372

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
f9d0128c6f500c5ac9b51da082e9fa7022871478
Parent: 351d8fb
Committed by GitHub <noreply@github.com> on 6/1/2026, 11:37:31 PM