pub struct LspClientRegistry { /* private fields */ }Expand description
LSP 客户端注册表
Implementations§
Source§impl LspClientRegistry
impl LspClientRegistry
Sourcepub async fn register(
&self,
config: &LspServerConfig,
project_root: &Path,
) -> Result<()>
pub async fn register( &self, config: &LspServerConfig, project_root: &Path, ) -> Result<()>
启动并注册 LSP 客户端
Sourcepub async fn has_active_clients(&self) -> bool
pub async fn has_active_clients(&self) -> bool
是否有活跃客户端
Sourcepub async fn active_languages(&self) -> Vec<String>
pub async fn active_languages(&self) -> Vec<String>
获取所有活跃语言
Sourcepub async fn shutdown_all(&self) -> Result<()>
pub async fn shutdown_all(&self) -> Result<()>
关闭所有客户端
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LspClientRegistry
impl !RefUnwindSafe for LspClientRegistry
impl Send for LspClientRegistry
impl Sync for LspClientRegistry
impl Unpin for LspClientRegistry
impl UnsafeUnpin for LspClientRegistry
impl !UnwindSafe for LspClientRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more