-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command to reload a single given Webview #96242
Comments
(Experimental duplicate detection) |
Can you share your use case for this? |
I'm developing an extension (webview-1), and I'd like to make use of an existing extension (also webview-2).
The second one runs a local Java JVM that holds state. The extension can submit data and request state to/from the JVM. The extension I'm trying to develop defines processing flows and might launch 1) to start defining data transformations. It might submit data to the JVM, and changes would need to be refreshed on its Webview. |
Thanks. Does your extension control both of the webviews being developed? Also, how would your extension identify which webview to refresh? The viewType or editor group for example? |
No, I only control the one I'm developing, but the user would be making use of both. |
Related #15178 Webviews are only known to the extension that created them so they don't really have a concept of an id that other extensions can use. How about filing a feature request against the extension that provides these webviews to add an API for refreshing them? |
Your suggestion might be a possible option, I'll try to progress following
that direction.
Thanks for you help.
…On Tue, 28 Apr 2020 at 02:04, Matt Bierner ***@***.***> wrote:
Related #15178 <#15178>
Webviews are only known to the extension that created them so they don't
really have a concept of an id that other extensions can use. How about
filing a feature request against the extension that provides these webviews
to add an API for refreshing them?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#96242 (comment)>,
or unsubscribe
<https:/notifications/unsubscribe-auth/ADM2JPIPJ45DWY6K5Y2IH4LROYTQRANCNFSM4MRZHEJA>
.
|
Ok, I'll close this issue for now then since it sounds like an extension specific solution may be the way to go |
Feature request for VSCode Webview Extensions.
A command already exists to reload Webviews, and one can programatically invoke it by implementing the following line:
vscode.commands.executeCommand("workbench.action.webview.reloadWebviewAction")
However, the above command reloads ALL webviews, which might be undesirable when multiple Webviews are displayed on screen.
The need requested is to have the ability to reload a specific Webview. For example to be able to identify a specfic Webview that is open, and request a reload to refresh its HTML content.
Thanks
The text was updated successfully, but these errors were encountered: