Fix md references not checking authority

Simply compare by string for now
This commit is contained in:
Matt Bierner
2022-04-05 15:31:43 -07:00
parent a56c9f10b7
commit b4b7380576
2 changed files with 4 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ export class MdReferencesProvider extends Disposable implements vscode.Reference
const references: MdReference[] = [];
for (const link of allLinksInWorkspace) {
if (link.href.kind === 'external' && link.href.uri.scheme === sourceLink.href.uri.scheme && link.href.uri.path === sourceLink.href.uri.path) {
if (link.href.kind === 'external' && link.href.uri.toString() === sourceLink.href.uri.toString()) {
const isTriggerLocation = sourceLink.source.resource.fsPath === link.source.resource.fsPath && sourceLink.source.hrefRange.isEqual(link.source.hrefRange);
references.push({
kind: 'link',