You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistently send verbatim URLs back to frontend (#1268)
Branched from #1267
Progress towards #1212
This PR straightens out the handing of verbatim wire URLs back to the
frontend, so that our lexically normalised paths don't leak out (see
#1250).
- New `WorldState::wire_url()` method that resolves verbatim URLs for
open files. The LSP layer calls it when communicating URLs back to the
frontend, instead of the lexically-normalised paths that travel through
the analysis layers.
- The goto-definition, find-references, and rename handlers now use that
method to create wire URLs.
- `indexer::map()` now hands `File` instead of URLs, and callers that
need a URL call `wire_url()`.
Note that `ArkFile` still contains a copy of the verbatim URLs because
Ark's diagnostics and roxygen handlers still use them. This is a
temporary situation until these handlers are updated to the modern
layering.
0 commit comments