From cc80a6484eedb828516847520aa1849d3888ebd7 Mon Sep 17 00:00:00 2001 From: Rokas Brazdzionis Date: Thu, 23 Mar 2017 16:09:10 +0200 Subject: [PATCH] Fix definition provider empty result --- src/providers/angular-html-definition-provider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/angular-html-definition-provider.ts b/src/providers/angular-html-definition-provider.ts index 182cdd7..ff311e0 100644 --- a/src/providers/angular-html-definition-provider.ts +++ b/src/providers/angular-html-definition-provider.ts @@ -26,10 +26,10 @@ export class AngularHtmlDefinitionProvider implements DefinitionProvider { /\*\w+=\"(.*)\"/g ]; let expressionMatch: string = utils.parseByLocationRegexps(lineText, position.character, regexps); - if (!expressionMatch) return false; + if (!expressionMatch) return null; let range = document.getWordRangeAtPosition(position); - if (!range) return false; + if (!range) return null; let propertyName = document.getText(range);