Skip to content

Commit

Permalink
fix: client mock setState
Browse files Browse the repository at this point in the history
tomgao365 committed Jun 26, 2024
1 parent dbcdd8b commit 1472665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webview/client.ts
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@ function patchAcquireVsCodeApi() {
setState(newState: any) {
console.log(TAG, 'mock acquireVsCodeApi.setState:', newState);
window.parent.postMessage({ type: SET_STATE_TYPE, data: newState }, '*');
return newState;
}
}

0 comments on commit 1472665

Please sign in to comment.