Set the correct dispatch action for the double-click handler for the pane tab bar (#9221)

Fixes #9003

Release Notes:

- Fixed the double-click action on the terminal tab bar opening a new
buffer instead of a new terminal
([#9003](https://github.com/zed-industries/zed/issues/9003)).
This commit is contained in:
Igal Tabachnik 2024-03-13 17:30:10 +02:00 committed by GitHub
parent fc9f84446a
commit 6286d86262
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 6 deletions

View file

@ -5,9 +5,9 @@ use collections::{HashMap, HashSet};
use db::kvp::KEY_VALUE_STORE;
use futures::future::join_all;
use gpui::{
actions, AppContext, AsyncWindowContext, Entity, EventEmitter, ExternalPaths, FocusHandle,
FocusableView, IntoElement, ParentElement, Pixels, Render, Styled, Subscription, Task, View,
ViewContext, VisualContext, WeakView, WindowContext,
actions, Action, AppContext, AsyncWindowContext, Entity, EventEmitter, ExternalPaths,
FocusHandle, FocusableView, IntoElement, ParentElement, Pixels, Render, Styled, Subscription,
Task, View, ViewContext, VisualContext, WeakView, WindowContext,
};
use itertools::Itertools;
use project::{Fs, ProjectEntryId};
@ -26,7 +26,7 @@ use workspace::{
item::Item,
pane,
ui::IconName,
DraggedTab, Pane, Workspace,
DraggedTab, NewTerminal, Pane, Workspace,
};
use anyhow::Result;
@ -69,6 +69,7 @@ impl TerminalPanel {
workspace.project().clone(),
Default::default(),
None,
NewTerminal.boxed_clone(),
cx,
);
pane.set_can_split(false, cx);