Implement LS on string-literal of dynamic import

This commit is contained in:
Kanchalai Tanglertsampan
2017-06-09 10:01:17 -07:00
parent cae1286b72
commit 2e55b6ae16
4 changed files with 28 additions and 7 deletions

View File

@@ -307,7 +307,7 @@ namespace ts.FindAllReferences.Core {
case SyntaxKind.ExportDeclaration:
return true;
case SyntaxKind.CallExpression:
return isRequireCall(node.parent as CallExpression, /*checkArgumentIsStringLiteral*/ false);
return isRequireCall(node.parent as CallExpression, /*checkArgumentIsStringLiteral*/ false) || isImportCall(node.parent as CallExpression);
default:
return false;
}