Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/mux
/ safeStringify
Function
safeStringify
vscode/src/webview/vscodeBridge.ts:13–19 ·
view source on GitHub ↗
(value: unknown)
Source
from the content-addressed store, hash-verified
11
}
12
13
function
safeStringify(value: unknown): string {
14
try {
15
return
JSON.stringify(value);
16
} catch {
17
return
String(value);
18
}
19
}
20
21
let
cachedBridge: VscodeBridge | null = null;
22
Callers
1
getVscodeBridge
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected