MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getGlobalState

Function getGlobalState

src/core/webview/webviewMessageHandler.ts:110–110  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

108) => {
109 // Utility functions provided for concise get/update of global state via contextProxy API.
110 const getGlobalState = <K extends keyof GlobalState>(key: K) => provider.contextProxy.getValue(key)
111 const updateGlobalState = async <K extends keyof GlobalState>(key: K, value: GlobalState[K]) =>
112 await provider.contextProxy.setValue(key, value)
113

Callers 1

webviewMessageHandlerFunction · 0.85

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected