Remove unnecessary dependencies from lsp_status crate

This commit is contained in:
Antonio Scandurra 2022-06-16 10:02:23 +02:00
parent 4e4210ac39
commit e09a6890f3
3 changed files with 3 additions and 14 deletions

4
Cargo.lock generated
View file

@ -2567,17 +2567,13 @@ dependencies = [
name = "lsp_status" name = "lsp_status"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"anyhow",
"collections",
"editor", "editor",
"futures", "futures",
"gpui", "gpui",
"language", "language",
"postage",
"project", "project",
"settings", "settings",
"smallvec", "smallvec",
"theme",
"util", "util",
"workspace", "workspace",
] ]

View file

@ -8,16 +8,12 @@ path = "src/lsp_status.rs"
doctest = false doctest = false
[dependencies] [dependencies]
collections = { path = "../collections" }
editor = { path = "../editor" } editor = { path = "../editor" }
language = { path = "../language" } language = { path = "../language" }
gpui = { path = "../gpui" } gpui = { path = "../gpui" }
project = { path = "../project" } project = { path = "../project" }
settings = { path = "../settings" } settings = { path = "../settings" }
theme = { path = "../theme" }
util = { path = "../util" } util = { path = "../util" }
workspace = { path = "../workspace" } workspace = { path = "../workspace" }
anyhow = "1.0"
futures = "0.3" futures = "0.3"
postage = { version = "0.4", features = ["futures-traits"] }
smallvec = { version = "1.6", features = ["union"] } smallvec = { version = "1.6", features = ["union"] }

View file

@ -1,17 +1,14 @@
use editor::Editor; use editor::Editor;
use futures::StreamExt; use futures::StreamExt;
use gpui::{actions, AppContext, EventContext, ViewHandle};
use gpui::{ use gpui::{
elements::*, platform::CursorStyle, Entity, ModelHandle, MutableAppContext, RenderContext, actions, elements::*, platform::CursorStyle, AppContext, Entity, EventContext, ModelHandle,
View, ViewContext, MutableAppContext, RenderContext, View, ViewContext, ViewHandle,
}; };
use language::{LanguageRegistry, LanguageServerBinaryStatus}; use language::{LanguageRegistry, LanguageServerBinaryStatus};
use project::{LanguageServerProgress, Project}; use project::{LanguageServerProgress, Project};
use settings::Settings; use settings::Settings;
use smallvec::SmallVec; use smallvec::SmallVec;
use std::cmp::Reverse; use std::{cmp::Reverse, fmt::Write, sync::Arc};
use std::fmt::Write;
use std::sync::Arc;
use util::ResultExt; use util::ResultExt;
use workspace::{ItemHandle, StatusItemView, Workspace}; use workspace::{ItemHandle, StatusItemView, Workspace};