cli: Use --wait to prefer focused window (#41051)

Introduce a new `prefer_focused_window` field to the
`workspace::OpenOptions` struct that, when provided, will make it so
that Zed opens the provided path in the currently focused window.

This will now automatically be set to true when the `--wait` flag is
used with the CLI.

Closes #40551 

Release Notes:

- Improved the `--wait` flag in Zed's CLI so as to always open the
provided file in the currently focused window

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
821a4880bdDino committed on 10/27/2025, 3:58:41 PM· committed by GitHubparent7f17d4b
3 files changedLine totals unavailable