mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 20:55:34 +01:00
79dea51e79
## Problem Webview uris currently have the form: ``` https://uuid.vscode-webview.net/vscode-resource/scheme/authority/path... ``` We have this syntax because we need to be able to recover the original scheme and authority of the resource in order to load it from disk However this syntax means that absolute urls don't behave as you'd expect. For example, if you have a webview that sets a `<base>` to a document in the workspace, an absolute url `/abs/path.png` ends up being resolved to: ``` https://uuid.vscode-webview.net/abs/path.png ``` This drops the original scheme and authority, which prevents us from loading the resource ## Fix With this change, I've moved the original scheme and authority into the authority of the webview uri instead of the path: ``` https://scheme+authority.vscode-resource.uuid.vscode-webview.net/path... ``` With this change, absolute paths should correctly be resolved
Language Features for Markdown files
Notice: This extension is bundled with Visual Studio Code. It can be disabled but not uninstalled.
Features
See Markdown in Visual Studio Code to learn about the features of this extension.