pub struct LspIntegration;Expand description
LSP integration for querying available LSP servers
This struct provides methods to query ricecoder-lsp for available LSP servers and create LSP providers for them.
Implementations§
Source§impl LspIntegration
impl LspIntegration
Sourcepub fn query_available_lsp_servers() -> Result<HashMap<String, LspServerInfo>>
pub fn query_available_lsp_servers() -> Result<HashMap<String, LspServerInfo>>
Query ricecoder-lsp for available LSP servers
Returns a map of language -> LSP server information
Sourcepub fn create_lsp_provider(
language: &str,
server_info: &LspServerInfo,
) -> Result<Arc<dyn LspProvider>>
pub fn create_lsp_provider( language: &str, server_info: &LspServerInfo, ) -> Result<Arc<dyn LspProvider>>
Create an LSP provider for a language
This creates a wrapper that delegates refactoring operations to an external LSP server.
Sourcepub fn detect_system_lsp_servers() -> Result<Vec<LspServerInfo>>
pub fn detect_system_lsp_servers() -> Result<Vec<LspServerInfo>>
Detect available LSP servers from the system
This scans for common LSP servers installed on the system (rust-analyzer, tsserver, pylsp, etc.)
Auto Trait Implementations§
impl Freeze for LspIntegration
impl RefUnwindSafe for LspIntegration
impl Send for LspIntegration
impl Sync for LspIntegration
impl Unpin for LspIntegration
impl UnwindSafe for LspIntegration
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