Extract chat_panel
into its own crate
This commit is contained in:
parent
d04a11405c
commit
1ec0afb2d1
6 changed files with 32 additions and 4 deletions
14
crates/chat_panel/Cargo.toml
Normal file
14
crates/chat_panel/Cargo.toml
Normal file
|
@ -0,0 +1,14 @@
|
|||
[package]
|
||||
name = "chat_panel"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
client = { path = "../client" }
|
||||
editor = { path = "../editor" }
|
||||
gpui = { path = "../gpui" }
|
||||
theme = { path = "../theme" }
|
||||
util = { path = "../util" }
|
||||
workspace = { path = "../workspace" }
|
||||
postage = { version = "0.4.1", features = ["futures-traits"] }
|
||||
time = "0.3"
|
|
@ -1,4 +1,3 @@
|
|||
use crate::Settings;
|
||||
use client::{
|
||||
channel::{Channel, ChannelEvent, ChannelList, ChannelMessage},
|
||||
Client,
|
||||
|
@ -17,6 +16,7 @@ use postage::{prelude::Stream, watch};
|
|||
use std::sync::Arc;
|
||||
use time::{OffsetDateTime, UtcOffset};
|
||||
use util::{ResultExt, TryFutureExt};
|
||||
use workspace::Settings;
|
||||
|
||||
const MESSAGE_LOADING_THRESHOLD: usize = 50;
|
||||
|
|
@ -25,6 +25,7 @@ test-support = [
|
|||
|
||||
[dependencies]
|
||||
buffer = { path = "../buffer" }
|
||||
chat_panel = { path = "../chat_panel" }
|
||||
client = { path = "../client" }
|
||||
clock = { path = "../clock" }
|
||||
fsevent = { path = "../fsevent" }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
pub mod assets;
|
||||
pub mod chat_panel;
|
||||
pub mod file_finder;
|
||||
pub mod language;
|
||||
pub mod menus;
|
||||
|
|
|
@ -12,8 +12,7 @@ use workspace::{self, settings, OpenNew};
|
|||
use zed::{
|
||||
self,
|
||||
assets::Assets,
|
||||
chat_panel, client,
|
||||
client::{http, ChannelList, UserStore},
|
||||
client::{self, http, ChannelList, UserStore},
|
||||
editor, file_finder,
|
||||
fs::RealFs,
|
||||
language, menus, people_panel, theme_selector, AppState, OpenParams, OpenPaths,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue