pub struct ExternalLspCompletionProxy { /* private fields */ }Expand description
External LSP completion proxy
This proxy maintains backward compatibility while enabling external LSP integration.
Implementations§
Source§impl ExternalLspCompletionProxy
impl ExternalLspCompletionProxy
Sourcepub fn with_external_lsp(
external_lsp: Arc<dyn ExternalLspCompletionClient>,
enable_fallback: bool,
) -> Self
pub fn with_external_lsp( external_lsp: Arc<dyn ExternalLspCompletionClient>, enable_fallback: bool, ) -> Self
Create a new completion proxy with external LSP client
Sourcepub async fn route_completion<F>(
&self,
language: &str,
uri: &str,
code: &str,
position: Position,
fallback_fn: F,
) -> CompletionResult<Vec<CompletionItem>>
pub async fn route_completion<F>( &self, language: &str, uri: &str, code: &str, position: Position, fallback_fn: F, ) -> CompletionResult<Vec<CompletionItem>>
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 ExternalLspCompletionProxy
impl !RefUnwindSafe for ExternalLspCompletionProxy
impl Send for ExternalLspCompletionProxy
impl Sync for ExternalLspCompletionProxy
impl Unpin for ExternalLspCompletionProxy
impl !UnwindSafe for ExternalLspCompletionProxy
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