We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb20cb3 commit d8aba89Copy full SHA for d8aba89
src/core/webview/webviewMessageHandler.ts
@@ -44,6 +44,7 @@ import { buildApiHandler } from "../../api"
44
import { GlobalState } from "../../schemas"
45
46
export const webviewMessageHandler = async (provider: ClineProvider, message: WebviewMessage) => {
47
+ // Utility functions provided for concise get/update of global state via contextProxy API.
48
const getGlobalState = <K extends keyof GlobalState>(key: K) => provider.contextProxy.getValue(key)
49
const updateGlobalState = async <K extends keyof GlobalState>(key: K, value: GlobalState[K]) =>
50
await provider.contextProxy.setValue(key, value)
0 commit comments