简体   繁体   中英

VSCode webview panel file link

For my extension in VSCode I have a html document with a file link in the html. It appears blue and underlined in the webviewpanel, but when I click on it, nothing happens. Is there a way to click on the hyperlink and make it load the document?

It is harder because of security reasons to link to a local resource in a webviewPanel. I found a work around solution to link to a command that opens a file in the html.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM