Skip to content

Commit

Permalink
nit: Add todo's about inlay hints for later
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Feb 12, 2023
1 parent 1bb2624 commit 3f1b568
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helix-term/src/ui/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ impl<T: Item> FilePicker<T> {
let loader = cx.editor.syn_loader.clone();
doc.detect_language(loader);
}

// QUESTION: do we want to compute inlay hints in pickers too ? Probably not for now
// but it could be interesting in the future
}

EventResult::Consumed(None)
Expand Down Expand Up @@ -339,6 +342,7 @@ impl<T: Item + 'static> Component for FilePicker<T> {
inner,
doc,
offset,
// TODO: compute text annotations asynchronously here (like inlay hints)
&TextAnnotations::default(),
highlights,
&cx.editor.theme,
Expand Down

0 comments on commit 3f1b568

Please sign in to comment.