Skip to content

Commit d8aba89

Browse files
Add clarifying comment to explain presence of utility functions
1 parent fb20cb3 commit d8aba89

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import { buildApiHandler } from "../../api"
4444
import { GlobalState } from "../../schemas"
4545

4646
export const webviewMessageHandler = async (provider: ClineProvider, message: WebviewMessage) => {
47+
// Utility functions provided for concise get/update of global state via contextProxy API.
4748
const getGlobalState = <K extends keyof GlobalState>(key: K) => provider.contextProxy.getValue(key)
4849
const updateGlobalState = async <K extends keyof GlobalState>(key: K, value: GlobalState[K]) =>
4950
await provider.contextProxy.setValue(key, value)

0 commit comments

Comments
 (0)