Log inGet started
What it does

lsp_ui

LSP UI mount panel — composes the Z.lsp.* widgets with state + polling + Z.app lifecycle. Mount it from any scene/component to get a tabbed Diagnostics / Docs / Settings panel that stays fresh on its own. This is Layer B in the stack: Layer A's widgets stay pure builders under Z.lsp.*, Layer C (system_tools) embeds those widgets inside its existing tab strip, and Layer B turns them into a standalone window with state + polling.

Exports

  • M.mount(opts: MountOpts?) -> LspUiHandle — mount the panel, return a handle whose update / onCallback / destroy / setVisible the caller drives each frame.

Types:

  • MountOpts = { title: string?, refreshIntervalMs: number?, initialTab: string?, layer: string?, showAsWindow: boolean? }
  • LspUiState = { ...activeTab, diagnostics, summary, namespaces, methods, ... } — the live state map shared between update and onCallback.
  • LspUiHandle = { state: LspUiState, update: (dt) -> (), onCallback: (id, data) -> boolean, destroy: () -> (), setVisible: (b) -> (), screenName: string }

Usage

local LspUi = require("@builtin::modules.engine.editor.lsp_ui")

local handle = LspUi.mount({
    title = "LSP",
    refreshIntervalMs = 1000,
    initialTab = "diagnostics",
})

-- In your component:
function update(dt) handle.update(dt) end
function onCallback(id, data) return handle.onCallback(id, data) end
function onDestroy() handle.destroy() end

Notes

  • mount primes namespaces and strict-mode synchronously so the first frame isn't a blank shell; polling thereafter is gated on the active tab and the refreshIntervalMs clock.
  • showAsWindow = false returns the body widget unwrapped — useful when embedding into another panel.
  • The handle's state field is the live reactive state; treat it as opaque except where documented.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

0items
This part has no composite children. See the Files segment for its leaf payloads.
This part has no leaf payloads.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.