Correctly incorporate editor settings into diagnostic header rendering
This commit is contained in:
parent
ae147a379d
commit
fb492a9fb8
8 changed files with 37 additions and 55 deletions
|
@ -9,7 +9,7 @@ use gpui::{
|
|||
};
|
||||
use parking_lot::Mutex;
|
||||
use postage::watch;
|
||||
use std::{cmp, rc::Rc, sync::Arc};
|
||||
use std::{cmp, sync::Arc};
|
||||
use theme::ThemeRegistry;
|
||||
use workspace::{Settings, Workspace};
|
||||
|
||||
|
@ -64,7 +64,7 @@ impl ThemeSelector {
|
|||
Editor::single_line(
|
||||
{
|
||||
let settings = settings.clone();
|
||||
Rc::new(move |_| {
|
||||
Arc::new(move |_| {
|
||||
let settings = settings.borrow();
|
||||
EditorSettings {
|
||||
tab_size: settings.tab_size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue