Always notify when receiving buffer operations

Antonio Scandurra created

We had changed it to only emit a notification when the buffer was
actually edited, but we also want to notify when we receive non-edit
operations, such as a selection update.

Change summary

crates/language/src/lib.rs | 3 +++
1 file changed, 3 insertions(+)

Detailed changes

crates/language/src/lib.rs 🔗

@@ -1299,6 +1299,9 @@ impl Buffer {
         let old_version = self.version.clone();
         self.text.apply_ops(ops)?;
         self.did_edit(old_version, was_dirty, cx);
+        // Notify independently of whether the buffer was edited as the operations could include a
+        // selection update.
+        cx.notify();
         Ok(())
     }