mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:21:55 +03:00
Fix formatting for the entire workspace
This commit is contained in:
parent
33bc47dbe2
commit
74ca223114
@ -1477,7 +1477,9 @@ async fn test_host_disconnect(
|
||||
.unwrap()
|
||||
.downcast::<Editor>()
|
||||
.unwrap();
|
||||
assert!(cx_b.read_window(window_id_b, |cx| editor_b.is_focused(cx)).unwrap());
|
||||
assert!(cx_b
|
||||
.read_window(window_id_b, |cx| editor_b.is_focused(cx))
|
||||
.unwrap());
|
||||
editor_b.update(cx_b, |editor, cx| editor.insert("X", cx));
|
||||
assert!(cx_b.is_window_edited(workspace_b.window_id()));
|
||||
|
||||
|
@ -248,12 +248,7 @@ impl Entity for FeedbackEditor {
|
||||
}
|
||||
|
||||
impl Item for FeedbackEditor {
|
||||
fn tab_content(
|
||||
&self,
|
||||
_: Option<usize>,
|
||||
style: &theme::Tab,
|
||||
_: &AppContext,
|
||||
) -> Element<Pane> {
|
||||
fn tab_content(&self, _: Option<usize>, style: &theme::Tab, _: &AppContext) -> Element<Pane> {
|
||||
Flex::row()
|
||||
.with_child(
|
||||
Svg::new("icons/feedback_16.svg")
|
||||
|
@ -19,8 +19,8 @@ use crate::{
|
||||
platform,
|
||||
platform::Platform,
|
||||
util::CwdBacktrace,
|
||||
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext,
|
||||
View, ViewContext,
|
||||
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext, View,
|
||||
ViewContext,
|
||||
};
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -1,7 +1,7 @@
|
||||
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
|
||||
use gpui::{
|
||||
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState,
|
||||
View, ViewContext, ViewHandle,
|
||||
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState, View,
|
||||
ViewContext, ViewHandle,
|
||||
};
|
||||
use picker::{Picker, PickerDelegate};
|
||||
use settings::{settings_file::SettingsFile, Settings};
|
||||
|
@ -8,8 +8,8 @@ use gpui::{
|
||||
vector::{vec2f, Vector2F},
|
||||
},
|
||||
json::{json, ToJson},
|
||||
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription,
|
||||
View, ViewContext, ViewHandle,
|
||||
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription, View,
|
||||
ViewContext, ViewHandle,
|
||||
};
|
||||
use settings::Settings;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user