Files
nuwiki/crates/nuwiki-lsp/tests
gffranco fcce5621a0
CI / cargo fmt --check (push) Successful in 1m1s
CI / cargo clippy (push) Successful in 1m6s
CI / cargo test (push) Successful in 1m16s
CI / editor keymaps (push) Successful in 1m41s
fix(lsp): resolve links from anywhere in the link, including the title
goto-definition (and references/hover) reported "No locations found" when
the cursor was on the *description* of a piped link — `[[target|Title]]`
or `[desc](url)` — and only worked over the target/location part.

find_in_inlines descended into the link's description and returned its
inner Text node, so the nav handlers saw a Text (not a WikiLink/
ExternalLink) and bailed. A link is an atomic unit for navigation: stop
descending into descriptions so a hit anywhere in the link returns the
link node itself. Adds a navigation regression test for cursor-on-title.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-07 14:29:41 +00:00
..