From 913827a44b2dfc25063a8e157a20f478718505b8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 20 Nov 2019 02:52:54 -0500 Subject: [PATCH] Fixes autolinking with remote providers --- src/annotations/autolinks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/annotations/autolinks.ts b/src/annotations/autolinks.ts index 5a4c568..8a137ca 100644 --- a/src/annotations/autolinks.ts +++ b/src/annotations/autolinks.ts @@ -47,11 +47,11 @@ export class Autolinks implements Disposable { } } - if (remotes !== undefined) { + if (remotes != null && remotes.length !== 0) { for (const r of remotes) { if (r.provider === undefined) continue; - for (const ref of this._references) { + for (const ref of r.provider.autolinks) { if (requiresGenerator(ref)) { ref.linkify = this._getAutolinkGenerator(ref); }