Move workspace::toast_layer::RunAction to zed_actions::toast::RunAction (#32222)

Cleaner to have references to this be `toast::RunAction` matching how it
appears in the keymap, instead of `workspace::RunAction`.

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-06-06 00:23:09 -06:00 committed by GitHub
parent 96609151c6
commit 5c9b8e8321
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 6 deletions

View file

@ -35,6 +35,7 @@ ui.workspace = true
util.workspace = true
workspace.workspace = true
workspace-hack.workspace = true
zed_actions.workspace = true
[dev-dependencies]
client = { workspace = true, features = ["test-support"] }

View file

@ -3,6 +3,7 @@ use std::rc::Rc;
use gpui::{DismissEvent, Entity, EventEmitter, FocusHandle, Focusable, IntoElement};
use ui::{Tooltip, prelude::*};
use workspace::{ToastAction, ToastView};
use zed_actions::toast;
#[derive(Clone, Copy)]
pub struct ToastIcon {
@ -109,7 +110,7 @@ impl Render for StatusToast {
Button::new(action.id.clone(), action.label.clone())
.tooltip(Tooltip::for_action_title(
action.label.clone(),
&workspace::RunAction,
&toast::RunAction,
))
.color(Color::Muted)
.when_some(action.on_click.clone(), |el, handler| {