Skip to content

Commit

Permalink
fix: unnecessary waiting decoration in virtual workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
washanhanzi committed Nov 20, 2024
1 parent 2267ff2 commit 003908c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/usecase/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ impl Document {

pub fn mark_dirty(&mut self) {
self.rev += 1;
for key in self.dependencies.keys() {
self.dirty_dependencies.insert(key.to_string(), self.rev);
for (k, v) in &self.dependencies {
if !v.is_virtual {
self.dirty_dependencies.insert(k.to_string(), self.rev);
}
}
}
}
Expand Down

0 comments on commit 003908c

Please sign in to comment.