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
This commit is contained in:
Matt Bierner
2018-10-29 16:18:05 -07:00
parent a14b154f88
commit b72c349e05

View File

@@ -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,