mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 17:43:20 +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()
|
.unwrap()
|
||||||
.downcast::<Editor>()
|
.downcast::<Editor>()
|
||||||
.unwrap();
|
.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));
|
editor_b.update(cx_b, |editor, cx| editor.insert("X", cx));
|
||||||
assert!(cx_b.is_window_edited(workspace_b.window_id()));
|
assert!(cx_b.is_window_edited(workspace_b.window_id()));
|
||||||
|
|
||||||
|
@ -248,12 +248,7 @@ impl Entity for FeedbackEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Item for FeedbackEditor {
|
impl Item for FeedbackEditor {
|
||||||
fn tab_content(
|
fn tab_content(&self, _: Option<usize>, style: &theme::Tab, _: &AppContext) -> Element<Pane> {
|
||||||
&self,
|
|
||||||
_: Option<usize>,
|
|
||||||
style: &theme::Tab,
|
|
||||||
_: &AppContext,
|
|
||||||
) -> Element<Pane> {
|
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.with_child(
|
.with_child(
|
||||||
Svg::new("icons/feedback_16.svg")
|
Svg::new("icons/feedback_16.svg")
|
||||||
|
@ -19,8 +19,8 @@ use crate::{
|
|||||||
platform,
|
platform,
|
||||||
platform::Platform,
|
platform::Platform,
|
||||||
util::CwdBacktrace,
|
util::CwdBacktrace,
|
||||||
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext,
|
AppContext, Drawable, Element, Entity, FontCache, Handle, Subscription, TestAppContext, View,
|
||||||
View, ViewContext,
|
ViewContext,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
|
use fuzzy::{match_strings, StringMatch, StringMatchCandidate};
|
||||||
use gpui::{
|
use gpui::{
|
||||||
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState,
|
actions, elements::*, AnyViewHandle, AppContext, Drawable, Element, Entity, MouseState, View,
|
||||||
View, ViewContext, ViewHandle,
|
ViewContext, ViewHandle,
|
||||||
};
|
};
|
||||||
use picker::{Picker, PickerDelegate};
|
use picker::{Picker, PickerDelegate};
|
||||||
use settings::{settings_file::SettingsFile, Settings};
|
use settings::{settings_file::SettingsFile, Settings};
|
||||||
|
@ -8,8 +8,8 @@ use gpui::{
|
|||||||
vector::{vec2f, Vector2F},
|
vector::{vec2f, Vector2F},
|
||||||
},
|
},
|
||||||
json::{json, ToJson},
|
json::{json, ToJson},
|
||||||
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription,
|
AnyViewHandle, AppContext, Element, Entity, SceneBuilder, SizeConstraint, Subscription, View,
|
||||||
View, ViewContext, ViewHandle,
|
ViewContext, ViewHandle,
|
||||||
};
|
};
|
||||||
use settings::Settings;
|
use settings::Settings;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user