From f3145431350920006b39f347e74bc78888f8055f Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 13 Jul 2019 09:48:16 -0700 Subject: [PATCH] Log bad linkifier instead of throwing --- src/Linkifier.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Linkifier.ts b/src/Linkifier.ts index 5398d3c59..769f3a502 100644 --- a/src/Linkifier.ts +++ b/src/Linkifier.ts @@ -212,11 +212,7 @@ export class Linkifier implements ILinkifier { if (!uri) { // something matched but does not comply with the given matchIndex // since this is most likely a bug the regex itself we simply do nothing here - // DEBUG: print match and throw - if ((this._terminal).debug) { - this._logService.error({ match, matcher }); - throw new Error('match found without corresponding matchIndex'); - } + this._logService.debug('match found without corresponding matchIndex', match, matcher); break; }