undo carbon edit (#15216)

This commit is contained in:
Maddy
2021-04-23 10:26:50 -07:00
committed by GitHub
parent 1252544282
commit f4d47e9675

View File

@@ -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);