Also ignore star checkboxes (#151029)

Fixes #150672

This makes our md link detection also ignore checkboxes like `* [x]` instead of just `- [x]`
This commit is contained in:
Matt Bierner
2022-06-01 14:23:29 -07:00
committed by GitHub
parent 0715386207
commit 9302343e8e
2 changed files with 6 additions and 3 deletions

View File

@@ -318,12 +318,15 @@ suite('markdown.DocumentLinkProvider', () => {
const links = await getLinksForFile(joinLines(
'- [x]',
'- [X]',
'- []',
'- [ ]',
'* [x]',
'* [X]',
'* [ ]',
``,
`[x]: http://example.com`
));
assert.strictEqual(links.length, 1);
assertRangeEqual(links[0].range, new vscode.Range(4, 5, 4, 23));
assertRangeEqual(links[0].range, new vscode.Range(7, 5, 7, 23));
});