Normalize vscode links in markdown files to target current vscode version

Fixes #71622

This allows you to use generic `vscode` links inside the markdown preview and still have them work if the preview is viewed in insiders
This commit is contained in:
Matt Bierner
2019-10-23 20:27:52 -07:00
parent af4ea4d46a
commit 78559bf9e6
5 changed files with 19 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ document.addEventListener('dblclick', event => {
}
});
const passThroughLinkSchemes = ['http:', 'https:', 'mailto:', 'vscode:', 'vscode-insiders'];
const passThroughLinkSchemes = ['http:', 'https:', 'mailto:', 'vscode:', 'vscode-insiders:'];
document.addEventListener('click', event => {
if (!event) {