gui/pkg/display/messages.go
Virgil f854b65720
Some checks failed
Security Scan / security (push) Failing after 30s
Test / test (push) Successful in 1m16s
refactor(ax): align WebSocket and window naming
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 07:23:22 +00:00

12 lines
469 B
Go

// pkg/display/messages.go
package display
// ActionIDECommand is broadcast when a menu handler triggers an IDE command
// (save, run, build). Replaces direct s.app.Event().Emit("ide:*") calls.
// Listeners (e.g. editor windows) handle this via HandleIPCEvents.
type ActionIDECommand struct {
Command string `json:"command"` // "save", "run", "build"
}
// EventIDECommand is the WebSocket event type for IDE commands.
const EventIDECommand EventType = "ide.command"