Move html rewriting for old webviews to (#163367)

The `asWebviewUri` methods was introduced in VS Code 1.38. It's silly that we still force every single webview to pay the cost of trying to rewrite the old style uris we supported in very old versions of VS Code

Instead I've moved this logic into the extension host and disabled it for all extensions that target VS Code 1.60+ or newer. This means it never applies to internal webviews, notebooks, webview views, or custom editors (these public apis were all introduced after the switch to `asWebviewUri`)
This commit is contained in:
Matt Bierner
2022-10-11 16:08:17 -07:00
committed by GitHub
parent 0abb1e99c2
commit d05d85a78b
5 changed files with 50 additions and 32 deletions

View File

@@ -8,7 +8,7 @@
"license": "MIT",
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"engines": {
"vscode": "^1.20.0"
"vscode": "^1.70.0"
},
"main": "./out/extension",
"browser": "./dist/browser/extension",