Do away with display points in toggle_code_actions

This commit is contained in:
Piotr Osiewicz
2024-05-08 16:34:56 +02:00
parent 65f7238777
commit 68fe2bb776
2 changed files with 22 additions and 36 deletions
+3 -1
View File
@@ -4022,11 +4022,13 @@ impl Element for EditorElement {
cx,
);
if gutter_settings.code_actions {
let newest_selection_point =
newest_selection_head.to_point(&snapshot.display_snapshot);
let has_test_indicator = self
.editor
.read(cx)
.tasks
.contains_key(&newest_selection_head.row());
.contains_key(&newest_selection_point.row);
if !has_test_indicator {
code_actions_indicator = self.layout_code_actions_indicator(
line_height,