PR feedback.

This commit is contained in:
Cyrus Najmabadi
2015-03-24 16:50:11 -07:00
parent e26c260822
commit 69ff9b3c13

View File

@@ -2948,6 +2948,9 @@ module ts {
// Find the symbol with the matching entry name.
let target = program.getCompilerOptions().target;
// We don't need to perform character checks here because we're only comparing the
// name against 'entryName' (which is known to be good), not building a new
// completion entry.
let symbol = forEach(symbols, s => getCompletionEntryDisplayName(s, target, /*performCharacterChecks:*/ false) === entryName ? s : undefined);
if (symbol) {