githubnext / githubnext/vscode-react-webviews

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

Abierto
#3 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
11
Forks
3
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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!

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.