Skip to main content

PyrightLspClientTrait

Trait PyrightLspClientTrait 

Source
pub trait PyrightLspClientTrait {
    // Required methods
    fn open_file(&mut self, file_path: &str, content: &str) -> Result<()>;
    fn update_file(
        &mut self,
        file_path: &str,
        content: &str,
        version: i32,
    ) -> Result<()>;
    fn query_type(
        &mut self,
        file_path: &str,
        content: &str,
        line: u32,
        column: u32,
    ) -> Result<Option<String>>;
    fn shutdown(&mut self) -> Result<()>;
}
Expand description

Trait for pyright-like LSP clients that can be used in TypeIntrospectionContext

Required Methods§

Source

fn open_file(&mut self, file_path: &str, content: &str) -> Result<()>

Source

fn update_file( &mut self, file_path: &str, content: &str, version: i32, ) -> Result<()>

Source

fn query_type( &mut self, file_path: &str, content: &str, line: u32, column: u32, ) -> Result<Option<String>>

Source

fn shutdown(&mut self) -> Result<()>

Implementors§