| @@ -7738,12 +7738,7 @@ impl Editor { · 7737 unmodified lines |
| 7738 | } | 7738 | } |
| 7739 | }) | 7739 | }) |
| 7740 | .await; | 7740 | .await; |
| 7741 | let rows = Self::refresh_runnable_display_rows( | 7741 | let rows = Self::runnable_rows(project, display_snapshot, new_rows, cx.clone()); |
| 7742 | project, | | |
| 7743 | display_snapshot, | | |
| 7744 | new_rows, | | |
| 7745 | cx.clone(), | | |
| 7746 | ); | | |
| 7747 | | 7742 | |
| 7748 | this.update(&mut cx, |this, _| { | 7743 | this.update(&mut cx, |this, _| { |
| 7749 | this.clear_tasks(); | 7744 | this.clear_tasks(); |
| @@ -7760,7 +7755,8 @@ impl Editor { · 10 unmodified lines |
| 7760 | ) -> Vec<(Range<usize>, Runnable)> { | 7755 | ) -> Vec<(Range<usize>, Runnable)> { |
| 7761 | snapshot.buffer_snapshot.runnable_ranges(range).collect() | 7756 | snapshot.buffer_snapshot.runnable_ranges(range).collect() |
| 7762 | } | 7757 | } |
| 7763 | fn refresh_runnable_display_rows( | 7758 | |
| | 7759 | fn runnable_rows( |
| 7764 | project: Model<Project>, | 7760 | project: Model<Project>, |
| 7765 | snapshot: DisplaySnapshot, | 7761 | snapshot: DisplaySnapshot, |
| 7766 | runnable_ranges: Vec<(Range<usize>, Runnable)>, | 7762 | runnable_ranges: Vec<(Range<usize>, Runnable)>, |
| @@ -7775,12 +7771,12 @@ impl Editor { · 8 unmodified lines |
| 7775 | if tasks.is_empty() { | 7771 | if tasks.is_empty() { |
| 7776 | return None; | 7772 | return None; |
| 7777 | } | 7773 | } |
| 7778 | let point = multi_buffer_range.start.to_display_point(&snapshot); | 7774 | let point = multi_buffer_range.start.to_point(&snapshot.buffer_snapshot); |
| 7779 | Some(( | 7775 | Some(( |
| 7780 | point.row(), | 7776 | point.row, |
| 7781 | RunnableTasks { | 7777 | RunnableTasks { |
| 7782 | templates: tasks, | 7778 | templates: tasks, |
| 7783 | column: point.column(), | 7779 | column: point.column, |
| 7784 | }, | 7780 | }, |
| 7785 | )) | 7781 | )) |
| 7786 | }) | 7782 | }) |