Skip to main content

Module Output

Module Output 

Source
Expand description

§Output channel handlers

vscode.window.createOutputChannel(...) flows in from Cocoon via gRPC; the WindServiceHandlers dispatcher (mod.rs:648-663) invokes one of these five free functions which emit a sky://output/* Tauri event for the renderer to mount / mutate / focus the channel panel.

Layout (one export per file, file name = identity):

  • OutputCreate::OutputCreate
  • OutputAppend::OutputAppend
  • OutputAppendLine::OutputAppendLine
  • OutputClear::OutputClear
  • OutputShow::OutputShow

Modules§

OutputAppend
Append text to an output channel. Emits the sky://output/append Tauri event with {channel, text}. Sky’s output-channel panel mounts the text into its scroll buffer.
OutputAppendLine
Append a line (text + \n) to an output channel. Twin of OutputAppend with the newline pre-applied so the renderer doesn’t need its own line-mode toggle.
OutputClear
Clear an output channel. Emits sky://output/clear with the channel name; Sky drops the channel’s scroll buffer.
OutputCreate
Create a named output channel. Returns the channel name as its handle. The Sky/frontend listens for sky://output/create and instantiates the channel panel; we just acknowledge.
OutputShow
Show an output channel panel. Emits sky://output/show; Sky brings the panel to the front and focuses it.