Fix one more case of #81320

The markdown link people write may be uri encoded. We need to decode these before trying to open them
This commit is contained in:
Matt Bierner
2019-10-08 16:56:27 -07:00
parent 588576d8dd
commit 21ba436c51

View File

@@ -536,7 +536,7 @@ export class MarkdownPreview extends Disposable {
}
private async onDidClickPreviewLink(href: string) {
let [hrefPath, fragment] = href.split('#');
let [hrefPath, fragment] = decodeURIComponent(href).split('#');
// We perviously already resolve absolute paths.
// Now make sure we handle relative file paths