Use better names, simplify
This commit is contained in:
parent
73937876b6
commit
5cf51211b6
2 changed files with 58 additions and 69 deletions
|
@ -2792,11 +2792,13 @@ impl Editor {
|
|||
}
|
||||
}
|
||||
InlayHintRefreshReason::ExcerptsRemoved(excerpts_removed) => {
|
||||
let InlaySplice {
|
||||
if let Some(InlaySplice {
|
||||
to_remove,
|
||||
to_insert,
|
||||
} = self.inlay_hint_cache.remove_excerpts(excerpts_removed);
|
||||
self.splice_inlay_hints(to_remove, to_insert, cx);
|
||||
}) = self.inlay_hint_cache.remove_excerpts(excerpts_removed)
|
||||
{
|
||||
self.splice_inlay_hints(to_remove, to_insert, cx);
|
||||
}
|
||||
return;
|
||||
}
|
||||
InlayHintRefreshReason::NewLinesShown => (InvalidationStrategy::None, None),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue