Stub initial hint requests
This commit is contained in:
parent
8a3b515f56
commit
79b97f9e75
4 changed files with 122 additions and 28 deletions
|
@ -879,6 +879,7 @@ impl EditorElement {
|
|||
for (ix, line_with_invisibles) in layout.position_map.line_layouts.iter().enumerate() {
|
||||
let row = start_row + ix as u32;
|
||||
line_with_invisibles.draw(
|
||||
editor,
|
||||
layout,
|
||||
row,
|
||||
scroll_top,
|
||||
|
@ -1794,6 +1795,7 @@ impl LineWithInvisibles {
|
|||
|
||||
fn draw(
|
||||
&self,
|
||||
editor: &mut Editor,
|
||||
layout: &LayoutState,
|
||||
row: u32,
|
||||
scroll_top: f32,
|
||||
|
@ -1817,6 +1819,10 @@ impl LineWithInvisibles {
|
|||
cx,
|
||||
);
|
||||
|
||||
// TODO kb bad: cloning happens very frequently, check the timestamp first
|
||||
let new_hints = editor.inlay_hints.read();
|
||||
// dbg!(new_hints);
|
||||
|
||||
self.draw_invisibles(
|
||||
&selection_ranges,
|
||||
layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue