Vim rename via menu too? (#14617)

Conrad Irwin created

Follow up to #14320

Release Notes:

- N/A

Change summary

crates/editor/src/editor.rs | 5 +++++
1 file changed, 5 insertions(+)

Detailed changes

crates/editor/src/editor.rs 🔗

@@ -9491,6 +9491,11 @@ impl Editor {
                         }
                         editor
                     });
+                    cx.subscribe(&rename_editor, |_, _, e, cx| match e {
+                        EditorEvent::Focused => cx.emit(EditorEvent::FocusedIn),
+                        _ => {}
+                    })
+                    .detach();
 
                     let write_highlights =
                         this.clear_background_highlights::<DocumentHighlightWrite>(cx);