Skip to content

Commit

Permalink
Fix flake reloading condition on file changes (#92)
Browse files Browse the repository at this point in the history
Typo, condition always evaluates to true
  • Loading branch information
maurobalbi authored Jun 15, 2023
1 parent 1edf2ad commit dbf26d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nil/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ impl Server {
fn on_did_change_watched_files(&mut self, params: DidChangeWatchedFilesParams) -> NotifyResult {
tracing::debug!("Watched files changed: {params:?}");

let mut flake_files_changed = true;
let mut flake_files_changed = false;
for &FileEvent { ref uri, mut typ } in &params.changes {
// Don't reload files maintained by the client.
if self.opened_files.contains_key(uri) {
Expand Down

0 comments on commit dbf26d6

Please sign in to comment.