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