mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
undo carbon edit (#15216)
This commit is contained in:
@@ -10,7 +10,6 @@ import { Command } from '../commandManager';
|
|||||||
import { MarkdownEngine } from '../markdownEngine';
|
import { MarkdownEngine } from '../markdownEngine';
|
||||||
import { TableOfContentsProvider } from '../tableOfContentsProvider';
|
import { TableOfContentsProvider } from '../tableOfContentsProvider';
|
||||||
import { isMarkdownFile } from '../util/file';
|
import { isMarkdownFile } from '../util/file';
|
||||||
import { isString } from 'util'; // {{SQL CARBON EDIT}}
|
|
||||||
|
|
||||||
|
|
||||||
type UriComponents = {
|
type UriComponents = {
|
||||||
@@ -154,7 +153,7 @@ export class OpenDocumentLinkCommand implements Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function reviveUri(parts: any) {
|
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.file(parts.path);
|
||||||
}
|
}
|
||||||
return vscode.Uri.parse('').with(parts);
|
return vscode.Uri.parse('').with(parts);
|
||||||
|
|||||||
Reference in New Issue
Block a user