Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'main' into optimize-large-multi-buffers

Antonio Scandurraa58b39f884df
diff --cc crates/editor/src/items.rs
index cce6d338f02,6568fe78dd0..7e7f44e5141
--- a/crates/editor/src/items.rs
+++ b/crates/editor/src/items.rs
@@@ -8,19 -8,16 +8,17 @@@ use anyhow::{anyhow, Context, Result}
use collections::HashSet;
use futures::future::try_join_all;
use futures::FutureExt;
--
use gpui::{
elements::*, geometry::vector::vec2f, AppContext, Entity, ModelHandle, MutableAppContext,
RenderContext, Subscription, Task, View, ViewContext, ViewHandle, WeakViewHandle,
};
-use language::proto::serialize_anchor as serialize_text_anchor;
-use language::{Bias, Buffer, OffsetRangeExt, Point, SelectionGoal};
+use language::{
- proto::serialize_anchor as serialize_text_anchor, Bias, Buffer, File as _, OffsetRangeExt,
- Point, SelectionGoal,
++ proto::serialize_anchor as serialize_text_anchor, Bias, Buffer, OffsetRangeExt, Point,
++ SelectionGoal,
+};
- use project::{File, FormatTrigger, Project, ProjectEntryId, ProjectPath};
+ use project::{FormatTrigger, Item as _, Project, ProjectPath};
use rpc::proto::{self, update_view};
use settings::Settings;
- use smallvec::SmallVec;
use std::{
borrow::Cow,
cmp::{self, Ordering},
diff --cc crates/search/src/project_search.rs
index 68c2f33a751,d30f4d804c7..a315cf0c5f1
--- a/crates/search/src/project_search.rs
+++ b/crates/search/src/project_search.rs
@@@ -16,10 -15,8 +16,9 @@@ use gpui::
use menu::Confirm;
use project::{search::SearchQuery, Project};
use settings::Settings;
- use smallvec::SmallVec;
use std::{
any::{Any, TypeId},
+ mem,
ops::Range,
path::PathBuf,
sync::Arc,