pub struct DiagnosticsManager { /* private fields */ }Expand description
Manages diagnostics for the LSP server.
Implementations§
Source§impl DiagnosticsManager
impl DiagnosticsManager
Sourcepub async fn validate_file(
&self,
uri: &Url,
content: &str,
) -> Result<Vec<Diagnostic>>
pub async fn validate_file( &self, uri: &Url, content: &str, ) -> Result<Vec<Diagnostic>>
Validate a file and update diagnostics.
Sourcepub async fn get_diagnostics(&self, uri: &Url) -> Vec<Diagnostic>
pub async fn get_diagnostics(&self, uri: &Url) -> Vec<Diagnostic>
Get current diagnostics for a file.
Sourcepub async fn clear_diagnostics(&self, uri: &Url)
pub async fn clear_diagnostics(&self, uri: &Url)
Clear diagnostics for a file.
Sourcepub async fn get_all_diagnostics(&self) -> HashMap<Url, Vec<Diagnostic>>
pub async fn get_all_diagnostics(&self) -> HashMap<Url, Vec<Diagnostic>>
Get all files with diagnostics.
Sourcepub async fn get_validation_stats(&self) -> ValidationStats
pub async fn get_validation_stats(&self) -> ValidationStats
Get validation statistics for all files.
Auto Trait Implementations§
impl Freeze for DiagnosticsManager
impl !RefUnwindSafe for DiagnosticsManager
impl Send for DiagnosticsManager
impl Sync for DiagnosticsManager
impl Unpin for DiagnosticsManager
impl UnsafeUnpin for DiagnosticsManager
impl !UnwindSafe for DiagnosticsManager
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