githubnext / githubnext/vscode-react-webviews

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

Aberta
#3 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
11
Forks
3
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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!

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.