In getSymbolAtLocation, return undefined instead of unknownSymbol (#21774)

* In getSymbolAtLocation, return undefined instead of unknownSymbol

* Update check in completions to look for undefined instead of unknownSymbol
This commit is contained in:
Andy authored and GitHub committed 2018-02-08 14:35:21 -08:00
1 parent 16f3b93ffd
commit e2178ecfab
60 files changed
+37 -372

No files matched your search

+2 -1
View File
@@ -24628,7 +24628,8 @@ namespace ts {
if (entityName.kind === SyntaxKind.Identifier) {
if (isJSXTagName(entityName) && isJsxIntrinsicIdentifier(entityName)) {
return getIntrinsicTagSymbol(<JsxOpeningLikeElement>entityName.parent);
const symbol = getIntrinsicTagSymbol(<JsxOpeningLikeElement>entityName.parent);
return symbol === unknownSymbol ? undefined : symbol;
}
return resolveEntityName(entityName, SymbolFlags.Value, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);