mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
8d3c251cc2
Fixes ``` thread 'main' panicked at 'byte index 2 is not a char boundary; it is inside '…' (bytes 0..3) of `…)`' ``` panics like https://zed-industries.slack.com/archives/C04S6T1T7TQ/p1694535396473329 by reworking the inlay hover model: * avoid storing "hardcoded" coordinates of hovered inlay labels (such as `InlayOffset`), instead, remember `inlay_id` and apply required highlights there when hint with the same id is handled * add randomized tests on inlay highlights * sped up inlay hint cache lookup by inlay_id As a downside, background highlights are no long appearing on inlay hints, but Zed does not receive any tooltips for inlays anyway (r-a does not send them for some reason, other LSP seem to have no such feature?), so it does not matter now. Nontheless, if the logic for displaying hint pop-ups is present and works for harcoded tooltips in r-a, only background highlight is missing now. Release Notes: - Fixed inlay hint highlights causing panic for certain cases with "large" characters |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |