首页 > 解决方案 > 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

标签: visual-studio-codevscode-extensions

解决方案


Consider using the webview API instead. It replaces previewHtml (which is now deprecated) and should be quite a bit easier to work with


推荐阅读