diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 2512c362f9c06dc94b231a2ea56168df9e13bf7e..204011412ec9b229ffdd49195e907369baa2d97f 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -23664,6 +23664,14 @@ impl Editor { editor.buffer.read(cx).buffer(excerpt.buffer_id()) })?; + if current_execution_position + .text_anchor + .buffer_id + .is_some_and(|id| id != buffer.read(cx).remote_id()) + { + return Some(Task::ready(Ok(Vec::new()))); + } + let range = buffer.read(cx).anchor_before(0)..current_execution_position.text_anchor;