Make chevrons and lightning bolt interactive

This commit is contained in:
Mikayla Maki
2023-02-28 16:34:28 -08:00
parent 89b93d4f6f
commit 37a2ef9d41
4 changed files with 47 additions and 18 deletions
+3 -1
View File
@@ -1818,8 +1818,10 @@ impl Element for EditorElement {
view.render_context_menu(newest_selection_head, style.clone(), cx);
}
let active = matches!(view.context_menu, Some(crate::ContextMenu::CodeActions(_)));
code_actions_indicator = view
.render_code_actions_indicator(&style, cx)
.render_code_actions_indicator(&style, active, cx)
.map(|indicator| (newest_selection_head.row(), indicator));
}