From b72c349e05ad2e25ccfc47ded52870daad5c5336 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Mon, 29 Oct 2018 16:18:05 -0700 Subject: [PATCH] Don't try re-encoding vscode-resoure markdown links Fixes #60374 Some markdown-it extensions end up reprocessing the same tokens multiple times. This can result in our link normalized being re-invoked on a link, which causes it to fail Fix to to make sure that `vscode-resource` is a recongized link so that we don't try re-normalizing in these cases --- extensions/markdown-language-features/src/util/links.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/markdown-language-features/src/util/links.ts b/extensions/markdown-language-features/src/util/links.ts index e1fc274d092..94bf3cacdd7 100644 --- a/extensions/markdown-language-features/src/util/links.ts +++ b/extensions/markdown-language-features/src/util/links.ts @@ -5,7 +5,7 @@ import * as vscode from 'vscode'; -const knownSchemes = ['http:', 'https:', 'file:', 'mailto:']; +const knownSchemes = ['http:', 'https:', 'file:', 'mailto:', 'vscode-resource:']; export function getUriForLinkWithKnownExternalScheme( link: string,