parent
65de969cc8
commit
1460573dd4
2 changed files with 2 additions and 3 deletions
|
@ -21,12 +21,12 @@ use ui::prelude::*;
|
||||||
use util::ResultExt as _;
|
use util::ResultExt as _;
|
||||||
use workspace::{Item, Workspace};
|
use workspace::{Item, Workspace};
|
||||||
|
|
||||||
actions!(acp, [OpenDebugTools]);
|
actions!(dev, [OpenAcpLogs]);
|
||||||
|
|
||||||
pub fn init(cx: &mut App) {
|
pub fn init(cx: &mut App) {
|
||||||
cx.observe_new(
|
cx.observe_new(
|
||||||
|workspace: &mut Workspace, _window, _cx: &mut Context<Workspace>| {
|
|workspace: &mut Workspace, _window, _cx: &mut Context<Workspace>| {
|
||||||
workspace.register_action(|workspace, _: &OpenDebugTools, window, cx| {
|
workspace.register_action(|workspace, _: &OpenAcpLogs, window, cx| {
|
||||||
let acp_tools =
|
let acp_tools =
|
||||||
Box::new(cx.new(|cx| AcpTools::new(workspace.project().clone(), cx)));
|
Box::new(cx.new(|cx| AcpTools::new(workspace.project().clone(), cx)));
|
||||||
workspace.add_item_to_active_pane(acp_tools, None, true, window, cx);
|
workspace.add_item_to_active_pane(acp_tools, None, true, window, cx);
|
||||||
|
|
|
@ -4434,7 +4434,6 @@ mod tests {
|
||||||
assert_eq!(actions_without_namespace, Vec::<&str>::new());
|
assert_eq!(actions_without_namespace, Vec::<&str>::new());
|
||||||
|
|
||||||
let expected_namespaces = vec![
|
let expected_namespaces = vec![
|
||||||
"acp",
|
|
||||||
"activity_indicator",
|
"activity_indicator",
|
||||||
"agent",
|
"agent",
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue