Skip to content

Commit

Permalink
Change the way to get the buffer font for the provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Dec 17, 2024
1 parent d1b0dfc commit 4e6dcd4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions crates/editor/src/code_context_menus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ use lsp::LanguageServerId;
use multi_buffer::{Anchor, ExcerptId};
use ordered_float::OrderedFloat;
use project::{CodeAction, Completion, TaskSourceKind};
use settings::Settings;
use task::ResolvedTask;
use theme::ThemeSettings;
use ui::{prelude::*, Color, IntoElement, ListItem, Popover, Styled};
use util::ResultExt as _;
use workspace::Workspace;
Expand Down Expand Up @@ -565,12 +563,11 @@ impl CompletionsMenu {
.toggle_state(item_ix == selected_item)
.start_slot(Icon::new(IconName::ZedPredict))
.child(
div()
.font(ThemeSettings::get_global(cx).buffer_font.clone())
.child(format!(
"{} Completion",
SharedString::new_static(provider_name)
)),
StyledText::new(format!(
"{} Completion",
SharedString::new_static(provider_name)
))
.with_highlights(&style.text, None),
)
.on_click(cx.listener(move |editor, _event, cx| {
cx.stop_propagation();
Expand Down

0 comments on commit 4e6dcd4

Please sign in to comment.