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"
version = "0.1.0"
dependencies = [
"anyhow",
"collections",
"editor",
"futures",
"gpui",
"language",
"postage",
"project",
"settings",
"smallvec",
"theme",
"util",
"workspace",
]

View File

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

View File

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