Skip to content

fix(lsp): don't panic on unresolved dts import hover - #34112

Merged
bartlomieju merged 1 commit into
mainfrom
orch/issue-87
May 19, 2026
Merged

bartlomieju merged 1 commit into
mainfrom
orch/issue-87

Conversation

@lunadogbot

Copy link
Copy Markdown
Contributor

Fixes #33723
Closes bartlomieju/orchid-inbox#87

Summary

  • Return no hover when a dependency hover in a .d.ts file has neither code nor type resolution.
  • Add an LSP regression test for hovering an unresolved bare import in types.d.ts.

Verification

  • cargo fmt --check
  • cargo test -p integration_tests --test integration lsp::lsp_hover_unresolved_dependency_in_dts
  • PATH="$PWD/target/debug:$PATH" ./tools/format.js --check cli/lsp/language_server.rs tests/integration/lsp_tests.rs
  • PATH="$PWD/target/debug:$PATH" ./tools/lint.js --rs

AI Assistance

This PR was prepared with AI assistance.

@bartlomieju
bartlomieju merged commit f818294 into main May 19, 2026
136 checks passed
@bartlomieju
bartlomieju deleted the orch/issue-87 branch May 19, 2026 00:47
littledivy pushed a commit to crowlKats/deno that referenced this pull request Jun 10, 2026
Fixes denoland#33723

- Return no hover when a dependency hover in a `.d.ts` file has neither
code nor type resolution.
- Add an LSP regression test for hovering an unresolved bare import in
`types.d.ts`.

Co-authored-by: lunadogbot <lunadogbot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

panic: "entered unreachable code" when importing from npm:@sapui5/ts-types-esm in .d.ts file

2 participants