MCPcopy
hub / github.com/coder/mux / VscodeBridge

Interface VscodeBridge

vscode/src/webview/vscodeBridge.ts:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import type { WebviewToExtensionMessage } from "./protocol";
4
5export interface VscodeBridge {
6 traceId: string;
7 startedAtMs: number;
8 postMessage: (payload: WebviewToExtensionMessage) => void;
9 onMessage: (handler: (data: unknown) => void) => () => void;
10 debugLog: (message: string, data?: unknown) => void;
11}
12
13function safeStringify(value: unknown): string {
14 try {

Callers

nothing calls this directly

Implementers 1

TestBridgevscode/src/webview/createVscodeOrpcLin

Calls

no outgoing calls

Tested by

no test coverage detected