assistant: Respect ui_font_weight setting for inline assist in the terminal (#14924)

This PR updates the terminal inline assist to respect the
`ui_font_weight` setting.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-21 13:09:25 -04:00 committed by GitHub
parent 54039162ac
commit 2d96bba61f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,8 @@ use editor::{
use fs::Fs;
use futures::{channel::mpsc, SinkExt, StreamExt};
use gpui::{
AppContext, Context, EventEmitter, FocusHandle, FocusableView, FontWeight, Global, Model,
ModelContext, Subscription, Task, TextStyle, UpdateGlobal, View, WeakView,
AppContext, Context, EventEmitter, FocusHandle, FocusableView, Global, Model, ModelContext,
Subscription, Task, TextStyle, UpdateGlobal, View, WeakView,
};
use language::Buffer;
use language_model::{LanguageModelRequest, LanguageModelRequestMessage, Role};
@ -945,7 +945,7 @@ impl PromptEditor {
font_family: settings.ui_font.family.clone(),
font_features: settings.ui_font.features.clone(),
font_size: rems(0.875).into(),
font_weight: FontWeight::NORMAL,
font_weight: settings.ui_font.weight,
line_height: relative(1.3),
..Default::default()
};