visual-studio-code - How to update previewHtml/TextDocumentContentProvider
问题描述
I am developing on a vscode extension. The method provideTextDocumentContent()
returns an iframe. This works very fine, but I need to reload the iframe/website by an action of vscode. But I don't know what I have to do to update that. I would be very happy about a minimum code example :) or other help for dummies :D
解决方案
Consider using the webview API instead. It replaces previewHtml (which is now deprecated) and should be quite a bit easier to work with
推荐阅读
- selenium - 如何在同一个 xpath 中添加两个 div 位置以忽略重复值?
- meteor - 在 Angular 7 和 Swift DDP 客户端上获取光标数据
- binary - 二进制左移和右移
- rest - 休息 api 有效负载字段的正确日期格式是什么?
- android - google play:如何将不同的 apk 分发到不同的国家但版本相同?
- c# - 由于 postsharp 错误,构建失败:管道服务器提前退出,退出代码为 1
- android - 如何使用观察者使用 ViewPager 中当前项目位置的值验证 EditText 中的值?
- regex - 使用 PCRE 从代码中删除 htmlentities(.*)
- docker - Gitlab - 获取作业时发生错误
- c# - 在 Google Cloud Datastore 上使用动态类型