Ask questionsWebview resource: support baseUrl and relative path

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: --> <!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

In webview, extensions are now converting file based URIs to vscode-webview-resource URI. It works for absolute paths but doesn't work for relative path. For example, say we have a webview which has base Url set as

<base url="vscode-webview-resource://7bec02ec-b6dc-4935-bece-581e0f5d9254/file///Users/rudi//notebook-test/test/">

and then use relative path for images

Currently it's not resolved properly. If there is baseUrl set for the web view, we may want to convert it to


Answer questions rebornix

oops, I used wrong attribute name, it should be href. Sorry for bothering, it works as charm.


Related questions

the terminal process terminated with exit code #259 hot 6
The terminal shell CWD &#34;/c:/User...&#34; does not exist - vscode hot 4
Bad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help. hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
format code alt + shift + f hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Virtual Space is not implemented. hot 2
EISDIR: illegal operation on a directory, read error when trying to REMOTE-SSH hot 2
Failed to save ...: The content of the file is newer. Please compare your version with the file contents. hot 2
Insiders - We cannot connect to the Extensions Marketplace hot 2
error on trying to open terminal hot 2
Github User Rank List