pub struct LspManager { /* private fields */ }Implementations§
Source§impl LspManager
impl LspManager
pub fn new(server_configs: Vec<LspServerConfig>) -> Result<LspManager, LspError>
pub fn supports_path(&self, path: &Path) -> bool
pub async fn open_document( &self, path: &Path, text: &str, ) -> Result<(), LspError>
pub async fn sync_document_from_disk(&self, path: &Path) -> Result<(), LspError>
pub async fn change_document( &self, path: &Path, text: &str, ) -> Result<(), LspError>
pub async fn save_document(&self, path: &Path) -> Result<(), LspError>
pub async fn close_document(&self, path: &Path) -> Result<(), LspError>
pub async fn go_to_definition( &self, path: &Path, position: Position, ) -> Result<Vec<SymbolLocation>, LspError>
pub async fn find_references( &self, path: &Path, position: Position, include_declaration: bool, ) -> Result<Vec<SymbolLocation>, LspError>
pub async fn collect_workspace_diagnostics( &self, ) -> Result<WorkspaceDiagnostics, LspError>
pub async fn context_enrichment( &self, path: &Path, position: Position, ) -> Result<LspContextEnrichment, LspError>
pub async fn shutdown(&self) -> Result<(), LspError>
Auto Trait Implementations§
impl !Freeze for LspManager
impl !RefUnwindSafe for LspManager
impl Send for LspManager
impl Sync for LspManager
impl Unpin for LspManager
impl UnsafeUnpin for LspManager
impl !UnwindSafe for LspManager
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