(&self, path: &Path)
| 375 | } |
| 376 | |
| 377 | pub async fn get_diagnostics(&self, path: &Path) -> Vec<Diagnostic> { |
| 378 | self.diagnostics |
| 379 | .read() |
| 380 | .await |
| 381 | .get(path) |
| 382 | .cloned() |
| 383 | .unwrap_or_default() |
| 384 | } |
| 385 | |
| 386 | /// Returns all diagnostics from all files this LSP server has reported on. |
| 387 | pub async fn get_all_diagnostics(&self) -> HashMap<PathBuf, Vec<Diagnostic>> { |
no test coverage detected