Skip to content

Commit 6d29204

Browse files
committed
Incorrectly reverted part of an earlier fix
1 parent 7b2517c commit 6d29204

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/vs/base/browser/markdownRenderer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
7373
return href; // no uri exists
7474
}
7575
let uri = URI.revive(data);
76-
if (URI.parse(href).toString() === uri.toString()) {
77-
return href; // no tranformation performed
78-
}
7976
if (isDomUri) {
8077
if (href.startsWith(Schemas.data + ':')) {
8178
return href;
@@ -86,6 +83,9 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
8683
// browsers (like http or https)
8784
return FileAccess.asBrowserUri(uri).toString(true);
8885
}
86+
if (URI.parse(href).toString() === uri.toString()) {
87+
return href; // no transformation performed
88+
}
8989
if (uri.query) {
9090
uri = uri.with({ query: _uriMassage(uri.query) });
9191
}
@@ -278,6 +278,7 @@ function getInsaneOptions(options: { readonly isTrusted?: boolean }): InsaneOpti
278278
Schemas.mailto,
279279
Schemas.data,
280280
Schemas.file,
281+
Schemas.vscodeFileResource,
281282
Schemas.vscodeRemote,
282283
Schemas.vscodeRemoteResource,
283284
];

0 commit comments

Comments
 (0)