githubnext / githubnext/vscode-react-webviews
Info: How to pass in a message from another command to the webview?
- 主要語言
- TypeScript
- 星號
- 11
- 分支
- 3
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I have tried exposing a ``postMessage`` function in ``NextViewWebpanel`` class and then posting a message to ``this.panel.webview.postMessage``, but I can't get it working. I'd like to update the VSCodeAPI State.
What is the best practice in updating the state of the webview from another command?
Some context:
I'm trying to pass text from the editor to the webview.
Thank you in advance!
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Read the NextViewWebpanel class and the command that is meant to pass editor text to the webview, then trace the call to this.panel.webview.postMessage and the VSCodeAPI state update. The issue does not name a file or test, so completion would require defining and verifying a working message flow first.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript, vscode
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 15/100