Change open paths to replace the existing window if dispatched from a window

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla Maki 2023-03-07 16:08:01 -08:00
parent ab4b3293d1
commit 904993dfc9
4 changed files with 163 additions and 90 deletions

View file

@ -48,7 +48,7 @@ pub fn new_journal_entry(app_state: Arc<AppState>, cx: &mut MutableAppContext) {
async move {
let (journal_dir, entry_path) = create_entry.await?;
let (workspace, _) = cx
.update(|cx| workspace::open_paths(&[journal_dir], &app_state, cx))
.update(|cx| workspace::open_paths(&[journal_dir], &app_state, None, cx))
.await;
let opened = workspace