Properly update inlay hints when settings are changed

This commit is contained in:
Kirill Bulatov 2023-06-14 00:39:51 +03:00
parent 1ed52276e0
commit c898298c5c
4 changed files with 315 additions and 189 deletions

View file

@ -303,7 +303,7 @@ impl DisplayMap {
.update(cx, |map, cx| map.sync(snapshot, edits, cx));
self.block_map.read(snapshot, edits);
let new_inlays = to_insert
let new_inlays: Vec<(InlayId, InlayProperties<String>)> = to_insert
.into_iter()
.map(|(inlay_id, hint_anchor, hint)| {
let mut text = hint.text();