We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84aa1ad commit 56a544bCopy full SHA for 56a544b
1 file changed
extensions/image-preview/src/preview.ts
@@ -240,9 +240,9 @@ class Preview extends Disposable implements vscode.WebviewEditorEditingCapabilit
240
default:
241
// Avoid adding cache busting if there is already a query string
242
if (resource.query) {
243
- return encodeURI(webviewEditor.webview.asWebviewUri(resource).toString(true));
+ return webviewEditor.webview.asWebviewUri(resource).toString(true);
244
}
245
- return encodeURI(webviewEditor.webview.asWebviewUri(resource).toString(true) + `?version=${version}`);
+ return webviewEditor.webview.asWebviewUri(resource).with({ query: `version=${version}` }).toString(true);
246
247
248
0 commit comments