Commit f0fabc6
committed
feat(Sky): Add webview post-message bridge for extension communication
Add a new handler for `sky://webview/post-message` that dispatches `cel:webview:post-message` custom events to the renderer. This bridges the raw extension `postMessage` path from Cocoon (gRPC `OnDidReceiveMessage` + `PostWebviewMessage`) which carries the `{ handle, message }` shape, distinct from the existing `sky://webview/message` handler that uses the workbench-RPC `{ panelId, method, params }` shape.
This enables extension-hosted code to communicate back to the Sky webview UI components through the established custom event system.1 parent 6fdd245 commit f0fabc6
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2330 | 2330 | | |
2331 | 2331 | | |
2332 | 2332 | | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2333 | 2338 | | |
2334 | 2339 | | |
2335 | 2340 | | |
| |||
2341 | 2346 | | |
2342 | 2347 | | |
2343 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2344 | 2360 | | |
2345 | 2361 | | |
2346 | 2362 | | |
| |||
0 commit comments