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
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 15/100