@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface WebviewRpcClientOptions

    interface WebviewRpcClientOptions {
        target?: MessageTargetLike;
        vscodeApi?: WebviewApiLike;
    }
    Index

    Where message events arrive. Defaults to globalThis (the webview's window); tests substitute a fake.

    vscodeApi?: WebviewApiLike

    The object returned by acquireVsCodeApi().

    Pass this whenever your webview already calls acquireVsCodeApi() itself (for getState/setState, say): VS Code allows exactly one call per session, and a second one throws. When omitted, the client calls it for you.