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 06:23:09 +00:00
committed by GitHub
parent 96609151c6
commit 5c9b8e8321
6 changed files with 14 additions and 6 deletions
+2 -1
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| {