Enable find all references and rename of auto links and http(s) links in markdown

For #146777, #146277
This commit is contained in:
Matt Bierner
2022-04-05 15:17:48 -07:00
parent c80acef8a1
commit a56c9f10b7
6 changed files with 158 additions and 7 deletions

View File

@@ -239,4 +239,12 @@ suite('markdown.DocumentLinkProvider', () => {
const links = await getLinksForFile(text);
assert.strictEqual(links.length, 1);
});
test('Should find autolinks', async () => {
const links = await getLinksForFile('pre <http://example.com> post');
assert.strictEqual(links.length, 1);
const link = links[0];
assertRangeEqual(link.range, new vscode.Range(0, 5, 0, 23));
});
});