Extract a language crate
This commit is contained in:
@@ -18,6 +18,7 @@ test-support = [
|
||||
"buffer/test-support",
|
||||
"client/test-support",
|
||||
"gpui/test-support",
|
||||
"language/test-support",
|
||||
"project/test-support",
|
||||
"rpc/test-support",
|
||||
"tempdir",
|
||||
@@ -33,6 +34,7 @@ fuzzy = { path = "../fuzzy" }
|
||||
editor = { path = "../editor" }
|
||||
file_finder = { path = "../file_finder" }
|
||||
gpui = { path = "../gpui" }
|
||||
language = { path = "../language" }
|
||||
people_panel = { path = "../people_panel" }
|
||||
project = { path = "../project" }
|
||||
project_panel = { path = "../project_panel" }
|
||||
@@ -85,6 +87,7 @@ url = "2.2"
|
||||
buffer = { path = "../buffer", features = ["test-support"] }
|
||||
editor = { path = "../editor", features = ["test-support"] }
|
||||
gpui = { path = "../gpui", features = ["test-support"] }
|
||||
language = { path = "../language", features = ["test-support"] }
|
||||
project = { path = "../project", features = ["test-support"] }
|
||||
rpc = { path = "../rpc", features = ["test-support"] }
|
||||
client = { path = "../client", features = ["test-support"] }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use buffer::{Language, LanguageRegistry};
|
||||
pub use language::{Language, LanguageRegistry};
|
||||
use rust_embed::RustEmbed;
|
||||
use std::borrow::Cow;
|
||||
use std::{str, sync::Arc};
|
||||
|
||||
@@ -4,8 +4,7 @@ pub mod menus;
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub mod test;
|
||||
|
||||
pub use buffer;
|
||||
use buffer::LanguageRegistry;
|
||||
use self::language::LanguageRegistry;
|
||||
use chat_panel::ChatPanel;
|
||||
pub use client;
|
||||
pub use editor;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::{assets::Assets, AppState};
|
||||
use buffer::LanguageRegistry;
|
||||
use client::{http::ServerResponse, test::FakeHttpClient, ChannelList, Client, UserStore};
|
||||
use gpui::{AssetSource, MutableAppContext};
|
||||
use language::LanguageRegistry;
|
||||
use parking_lot::Mutex;
|
||||
use postage::watch;
|
||||
use project::fs::FakeFs;
|
||||
|
||||
Reference in New Issue
Block a user