fix: issue #20 cmd-J panel tab strip visibility and output panel parity
This commit is contained in:
@@ -20,6 +20,17 @@ defmodule BDS.Desktop.ShellLive.Notify do
|
||||
:ok
|
||||
end
|
||||
|
||||
@doc """
|
||||
Sends an output entry to a specific LiveView process. Needed when the
|
||||
caller runs in a different process than the shell — e.g. script output
|
||||
callbacks invoked inside the sandboxed script process.
|
||||
"""
|
||||
@spec output_to(pid(), String.t(), String.t(), String.t() | nil, String.t()) :: :ok
|
||||
def output_to(pid, title, message, detail, level) when is_pid(pid) do
|
||||
send(pid, {:editor_output, title, message, detail, level})
|
||||
:ok
|
||||
end
|
||||
|
||||
@spec alert(String.t(), String.t()) :: :ok
|
||||
def alert(title, message) do
|
||||
send(self(), {:shell_alert, title, message})
|
||||
|
||||
Reference in New Issue
Block a user