From f4d47e9675523b42c541ea9f7c868bcbac7f9db1 Mon Sep 17 00:00:00 2001 From: Maddy <12754347+MaddyDev@users.noreply.github.com> Date: Fri, 23 Apr 2021 10:26:50 -0700 Subject: [PATCH] undo carbon edit (#15216) --- .../src/commands/openDocumentLink.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/markdown-language-features/src/commands/openDocumentLink.ts b/extensions/markdown-language-features/src/commands/openDocumentLink.ts index 6551b09bc4..43cd2ecc00 100644 --- a/extensions/markdown-language-features/src/commands/openDocumentLink.ts +++ b/extensions/markdown-language-features/src/commands/openDocumentLink.ts @@ -10,7 +10,6 @@ import { Command } from '../commandManager'; import { MarkdownEngine } from '../markdownEngine'; import { TableOfContentsProvider } from '../tableOfContentsProvider'; import { isMarkdownFile } from '../util/file'; -import { isString } from 'util'; // {{SQL CARBON EDIT}} type UriComponents = { @@ -154,7 +153,7 @@ export class OpenDocumentLinkCommand implements Command { } function reviveUri(parts: any) { - if (parts.scheme === 'file' && isString(parts.path)) { // {{SQL CARBON EDIT}} Fix markdown relative links https://github.com/microsoft/azuredatastudio/issues/11657 + if (parts.scheme === 'file') { return vscode.Uri.file(parts.path); } return vscode.Uri.parse('').with(parts);