pub struct LspProxy { /* private fields */ }Expand description
LSP Proxy for routing requests to external LSP servers
This proxy maintains backward compatibility while enabling external LSP integration.
Implementations§
Source§impl LspProxy
impl LspProxy
Sourcepub fn with_external_lsp(
external_lsp: Arc<dyn ExternalLspClient>,
enable_fallback: bool,
) -> Self
pub fn with_external_lsp( external_lsp: Arc<dyn ExternalLspClient>, enable_fallback: bool, ) -> Self
Create a new LSP proxy with external LSP client
Sourcepub fn route_completion<F>(
&self,
language: &str,
uri: &str,
position: Value,
context: Value,
fallback_fn: F,
) -> LspResult<Value>
pub fn route_completion<F>( &self, language: &str, uri: &str, position: Value, context: Value, fallback_fn: F, ) -> LspResult<Value>
Sourcepub fn route_diagnostics<F>(
&self,
language: &str,
uri: &str,
fallback_fn: F,
) -> LspResult<Value>
pub fn route_diagnostics<F>( &self, language: &str, uri: &str, fallback_fn: F, ) -> LspResult<Value>
Sourcepub fn route_hover<F>(
&self,
language: &str,
uri: &str,
position: Value,
fallback_fn: F,
) -> LspResult<Value>
pub fn route_hover<F>( &self, language: &str, uri: &str, position: Value, fallback_fn: F, ) -> LspResult<Value>
Sourcepub fn route_definition<F>(
&self,
language: &str,
uri: &str,
position: Value,
fallback_fn: F,
) -> LspResult<Value>
pub fn route_definition<F>( &self, language: &str, uri: &str, position: Value, fallback_fn: F, ) -> LspResult<Value>
Sourcepub fn route_references<F>(
&self,
language: &str,
uri: &str,
position: Value,
fallback_fn: F,
) -> LspResult<Value>
pub fn route_references<F>( &self, language: &str, uri: &str, position: Value, fallback_fn: F, ) -> LspResult<Value>
Sourcepub fn is_external_lsp_available(&self, language: &str) -> bool
pub fn is_external_lsp_available(&self, language: &str) -> bool
Check if external LSP is available for language
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LspProxy
impl !RefUnwindSafe for LspProxy
impl Send for LspProxy
impl Sync for LspProxy
impl Unpin for LspProxy
impl !UnwindSafe for LspProxy
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