mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Fix new errors after merge
This commit is contained in:
parent
f2a5a4d0fd
commit
c118f9aabd
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -2040,7 +2040,6 @@ dependencies = [
|
|||||||
"search",
|
"search",
|
||||||
"serde",
|
"serde",
|
||||||
"settings",
|
"settings",
|
||||||
"smallvec",
|
|
||||||
"sysinfo",
|
"sysinfo",
|
||||||
"theme",
|
"theme",
|
||||||
"tree-sitter-markdown",
|
"tree-sitter-markdown",
|
||||||
|
@ -25,7 +25,6 @@ project = { path = "../project" }
|
|||||||
search = { path = "../search" }
|
search = { path = "../search" }
|
||||||
serde = { version = "1.0", features = ["derive", "rc"] }
|
serde = { version = "1.0", features = ["derive", "rc"] }
|
||||||
settings = { path = "../settings" }
|
settings = { path = "../settings" }
|
||||||
smallvec = { version = "1.6", features = ["union"] }
|
|
||||||
sysinfo = "0.27.1"
|
sysinfo = "0.27.1"
|
||||||
theme = { path = "../theme" }
|
theme = { path = "../theme" }
|
||||||
tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
|
tree-sitter-markdown = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "330ecab87a3e3a7211ac69bbadc19eabecdb1cca" }
|
||||||
|
@ -7,18 +7,18 @@ use futures::AsyncReadExt;
|
|||||||
use gpui::{
|
use gpui::{
|
||||||
actions,
|
actions,
|
||||||
elements::{ChildView, Flex, Label, MouseEventHandler, ParentElement, Stack, Text},
|
elements::{ChildView, Flex, Label, MouseEventHandler, ParentElement, Stack, Text},
|
||||||
serde_json, AnyViewHandle, CursorStyle, Element, ElementBox, Entity, ModelHandle, MouseButton,
|
serde_json, AnyViewHandle, AppContext, CursorStyle, Element, ElementBox, Entity, ModelHandle,
|
||||||
MutableAppContext, PromptLevel, RenderContext, Task, View, ViewContext, ViewHandle,
|
MouseButton, MutableAppContext, PromptLevel, RenderContext, Task, View, ViewContext,
|
||||||
|
ViewHandle,
|
||||||
};
|
};
|
||||||
use isahc::Request;
|
use isahc::Request;
|
||||||
use language::Buffer;
|
use language::Buffer;
|
||||||
use postage::prelude::Stream;
|
use postage::prelude::Stream;
|
||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use project::{Project, ProjectEntryId, ProjectPath};
|
use project::Project;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use settings::Settings;
|
use settings::Settings;
|
||||||
use smallvec::SmallVec;
|
|
||||||
use workspace::{
|
use workspace::{
|
||||||
item::{Item, ItemHandle},
|
item::{Item, ItemHandle},
|
||||||
searchable::{SearchableItem, SearchableItemHandle},
|
searchable::{SearchableItem, SearchableItemHandle},
|
||||||
@ -345,18 +345,14 @@ impl Item for FeedbackEditor {
|
|||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn for_each_project_item(&self, cx: &AppContext, f: &mut dyn FnMut(usize, &dyn project::Item)) {
|
||||||
|
self.editor.for_each_project_item(cx, f)
|
||||||
|
}
|
||||||
|
|
||||||
fn to_item_events(_: &Self::Event) -> Vec<workspace::item::ItemEvent> {
|
fn to_item_events(_: &Self::Event) -> Vec<workspace::item::ItemEvent> {
|
||||||
Vec::new()
|
Vec::new()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn project_path(&self, _: &gpui::AppContext) -> Option<ProjectPath> {
|
|
||||||
None
|
|
||||||
}
|
|
||||||
|
|
||||||
fn project_entry_ids(&self, _: &gpui::AppContext) -> SmallVec<[ProjectEntryId; 3]> {
|
|
||||||
SmallVec::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn is_singleton(&self, _: &gpui::AppContext) -> bool {
|
fn is_singleton(&self, _: &gpui::AppContext) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ actions!(
|
|||||||
ToggleRightSidebar,
|
ToggleRightSidebar,
|
||||||
NewTerminal,
|
NewTerminal,
|
||||||
NewSearch,
|
NewSearch,
|
||||||
Feedback
|
Feedback,
|
||||||
ShowNotif,
|
ShowNotif,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -20,8 +20,7 @@ use gpui::{
|
|||||||
},
|
},
|
||||||
impl_actions,
|
impl_actions,
|
||||||
platform::{WindowBounds, WindowOptions},
|
platform::{WindowBounds, WindowOptions},
|
||||||
AssetSource, AsyncAppContext, ClipboardItem, PromptLevel, TitlebarOptions, ViewContext,
|
AssetSource, AsyncAppContext, PromptLevel, TitlebarOptions, ViewContext, WindowKind,
|
||||||
WindowKind,
|
|
||||||
};
|
};
|
||||||
use language::Rope;
|
use language::Rope;
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
Loading…
Reference in New Issue
Block a user