Add API to emit type-checking diagnostics (#12988)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Micha Reiser 2024-08-20 09:22:30 +02:00 committed by GitHub
parent 38c19fb96e
commit c65e3310d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 337 additions and 142 deletions

View file

@ -109,7 +109,7 @@ impl Workspace {
pub fn check_file(&self, file_id: &FileHandle) -> Result<Vec<String>, Error> {
let result = self.db.check_file(file_id.file).map_err(into_error)?;
Ok(result.to_vec())
Ok(result.clone())
}
/// Checks all open files