Skip to content

Commit

Permalink
update for jakes changes
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 16, 2023
1 parent c835f55 commit 4861d18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/lsp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ fn on_did_save_text_document(

let mut diagnostics = Vec::new();

if let Err(file_diagnostics) = driver.check_crate() {
let file_diagnostics = match driver.check_crate(false) {
Ok(warnings) => warnings,
Err(errors_and_warnings) => errors_and_warnings,
};

if !file_diagnostics.is_empty() {
let fm = driver.file_manager();
let files = fm.as_simple_files();

Expand Down

0 comments on commit 4861d18

Please sign in to comment.