From d8bce6b97d9cd4935715525cbbb51de53cf586e8 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Fri, 6 Nov 2026 14:40:19 -0500 Subject: [PATCH] Move gear: the marker getter names the direct-write exception too (#11381) Doc only: the getter's comment now says, as the field's does, that a direct write to DocState::active_layer through active_mut() bypasses the change marker. Co-Authored-By: Claude Fable 5.1 --- crates/engine/src/session/documents.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/engine/src/session/documents.rs b/crates/engine/src/session/documents.rs index 3732173946..0ee71b5de9 100644 --- a/crates/engine/src/session/documents.rs +++ b/crates/engine/src/session/documents.rs @@ -43,9 +43,10 @@ impl Session { self.active_generation } - /// Change marker: advances at least once whenever the active document or layer changes, by any - /// path. Compare two readings for equality to know whether anything changed in between; it is - /// not an exact count of operations. + /// Change marker: advances at least once whenever the active document or layer changes through + /// the `Session` API (see the field). Compare two readings for equality to know whether anything + /// changed in between; it is not an exact count of operations. A direct write to + /// `DocState::active_layer` through `active_mut()` bypasses it. pub fn active_layer_changes(&self) -> u64 { self.active_layer_changes }