pub trait ExternalLspCompletionClient: Send + Sync {
// Required methods
fn forward_completion<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
language: &'life1 str,
uri: &'life2 str,
code: &'life3 str,
position: Position,
) -> Pin<Box<dyn Future<Output = CompletionResult<Option<Vec<CompletionItem>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn is_available(&self, language: &str) -> bool;
}Expand description
Trait for external LSP completion client
Required Methods§
Sourcefn forward_completion<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
language: &'life1 str,
uri: &'life2 str,
code: &'life3 str,
position: Position,
) -> Pin<Box<dyn Future<Output = CompletionResult<Option<Vec<CompletionItem>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn forward_completion<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
language: &'life1 str,
uri: &'life2 str,
code: &'life3 str,
position: Position,
) -> Pin<Box<dyn Future<Output = CompletionResult<Option<Vec<CompletionItem>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Sourcefn is_available(&self, language: &str) -> bool
fn is_available(&self, language: &str) -> bool
Check if external LSP is available for language