Files
vscode/extensions
Matt Bierner 79dea51e79 Rewrite webview urls to be more url-ish
## 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
2021-05-21 09:28:43 -07:00
..
2021-05-04 13:42:19 +02:00
2021-05-10 14:59:58 +02:00
2021-05-04 15:55:26 -04:00
2021-05-19 20:40:07 +02:00
2021-04-30 14:42:10 -07:00
2021-05-19 15:34:07 -07:00
2021-05-17 10:50:33 +02:00
2021-05-04 15:06:52 -07:00
2021-05-21 09:12:57 -07:00
2021-04-22 09:29:46 -04:00
2021-05-04 13:42:19 +02:00
2021-05-04 13:42:19 +02:00
2021-05-04 14:09:39 +02:00
2021-05-04 14:09:39 +02:00
2021-05-11 17:58:26 +02:00
2021-05-19 15:47:35 -07:00
2021-05-19 15:47:35 -07:00