This is a refactor to prepare for adding LSP support in SSH remote projects. Release Notes: - N/A --------- Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Conrad <conrad@zed.dev>
24 lines
726 B
Rust
24 lines
726 B
Rust
mod channel_buffer;
|
|
mod channel_chat;
|
|
mod channel_store;
|
|
|
|
use client::{Client, UserStore};
|
|
use gpui::{AppContext, Model};
|
|
use std::sync::Arc;
|
|
|
|
pub use channel_buffer::{ChannelBuffer, ChannelBufferEvent, ACKNOWLEDGE_DEBOUNCE_INTERVAL};
|
|
pub use channel_chat::{
|
|
mentions_to_proto, ChannelChat, ChannelChatEvent, ChannelMessage, ChannelMessageId,
|
|
MessageParams,
|
|
};
|
|
pub use channel_store::{Channel, ChannelEvent, ChannelMembership, ChannelStore};
|
|
|
|
#[cfg(test)]
|
|
mod channel_store_tests;
|
|
|
|
pub fn init(client: &Arc<Client>, user_store: Model<UserStore>, cx: &mut AppContext) {
|
|
channel_store::init(client, user_store, cx);
|
|
channel_buffer::init(&client.clone().into());
|
|
channel_chat::init(&client.clone().into());
|
|
}
|