mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 19:29:17 +00:00
@@ -134,7 +134,7 @@ async function getLinksForFile(file: vscode.Uri): Promise<vscode.DocumentLink[]>
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Should navigate to fragment within current untitled file', async () => { // TODO: skip for now for ls migration
|
test.skip('Should navigate to fragment within current untitled file', async () => { // TODO: skip for now for ls migration
|
||||||
const testFile = workspaceFile('x.md').with({ scheme: 'untitled' });
|
const testFile = workspaceFile('x.md').with({ scheme: 'untitled' });
|
||||||
await withFileContents(testFile, joinLines(
|
await withFileContents(testFile, joinLines(
|
||||||
'[](#second)',
|
'[](#second)',
|
||||||
@@ -169,9 +169,8 @@ async function withFileContents(file: vscode.Uri, contents: string): Promise<voi
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function executeLink(link: vscode.DocumentLink) {
|
async function executeLink(link: vscode.DocumentLink) {
|
||||||
debugLog('executeingLink', link.target?.toString(), Date.now());
|
debugLog('executingLink', link.target?.toString(), Date.now());
|
||||||
|
|
||||||
const args: any[] = JSON.parse(decodeURIComponent(link.target!.query));
|
await vscode.commands.executeCommand('vscode.open', link.target!);
|
||||||
await vscode.commands.executeCommand(link.target!.path, vscode.Uri.from(args[0]), ...args.slice(1));
|
|
||||||
debugLog('executedLink', vscode.window.activeTextEditor?.document.toString(), Date.now());
|
debugLog('executedLink', vscode.window.activeTextEditor?.document.toString(), Date.now());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ suite('markdown.engine', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
suite.only('image-caching', () => {
|
suite('image-caching', () => {
|
||||||
const input = ' [](no-img.png)   ';
|
const input = ' [](no-img.png)   ';
|
||||||
|
|
||||||
test('Extracts all images', async () => {
|
test('Extracts all images', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user