mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 10:29:35 +03:00
editor: Do not show test indicators if a line is folded (#11599)
Originally reported by @RemcoSmitsDev Release Notes: - N/A
This commit is contained in:
parent
bd6d385817
commit
fdcedf15b7
@ -1407,7 +1407,10 @@ impl EditorElement {
|
||||
editor
|
||||
.tasks
|
||||
.keys()
|
||||
.map(|row| {
|
||||
.filter_map(|row| {
|
||||
if snapshot.is_line_folded(*row) {
|
||||
return None;
|
||||
}
|
||||
let button = editor.render_run_indicator(
|
||||
&self.style,
|
||||
Some(*row) == active_task_indicator_row,
|
||||
@ -1426,7 +1429,7 @@ impl EditorElement {
|
||||
gutter_hitbox,
|
||||
cx,
|
||||
);
|
||||
button
|
||||
Some(button)
|
||||
})
|
||||
.collect_vec()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user