githubnext / githubnext/vscode-react-webviews

Info: How to pass in a message from another command to the webview?

Ouverte
#3 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
11
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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!

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.