assistant: Remove meta description from quote selection tooltip (#16412)

The original idea was for the keybinding to be within the description, but given it's already inline with the title, I figure we don't need this anymore—cleaning it up a bit!

--- 

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2024-08-17 13:30:32 -03:00 committed by GitHub
parent e4a591dcbd
commit 7c268d0c6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3745,17 +3745,15 @@ impl Render for ContextEditor {
}) })
.tooltip(move |cx| { .tooltip(move |cx| {
cx.new_view(|cx| { cx.new_view(|cx| {
Tooltip::new("Insert Selection") Tooltip::new("Insert Selection").key_binding(
.meta("Press to quote via keyboard") focus_handle.as_ref().and_then(|handle| {
.key_binding(focus_handle.as_ref().and_then(
|handle| {
KeyBinding::for_action_in( KeyBinding::for_action_in(
&QuoteSelection, &QuoteSelection,
&handle, &handle,
cx, cx,
) )
}, }),
)) )
}) })
.into() .into()
}), }),