@vestra-player/sdk - v1.11.3
    Preparing search index...

    Interface WireCommandStateExperimental

    A command's state as the player takes it: enabled, checked (null: no check mark), busy and reason (a text, or null).

    Experimental: the wire protocol is not semver; this member changes with versions.

    The menu shows the command disabled, with the reason as its tooltip.

    const state: WireCommandState = { enabled: false, reason: "Open a file first" };
    await command.update(state);

    1.7.0

    interface WireCommandState {
        enabled?: boolean;
        checked?: boolean | null;
        busy?: boolean;
        reason?: Json;
    }
    Index
    enabled?: boolean

    The user can run it (default true).

    checked?: boolean | null

    A check mark: true, false, or null for none (default null).

    busy?: boolean

    Shown as working (default false).

    reason?: Json

    Why it is disabled: source text or a text value in wire form, or null (default).