Pass AppState as action arg to workspace:share_worktree

Nathan Sobo created

Change summary

zed/src/menus.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

zed/src/menus.rs 🔗

@@ -19,7 +19,7 @@ pub fn menus(state: &Arc<AppState>) -> Vec<Menu<'static>> {
                     name: "Share",
                     keystroke: None,
                     action: "workspace:share_worktree",
-                    arg: None,
+                    arg: Some(Box::new(state.clone())),
                 },
                 MenuItem::Action {
                     name: "Join",