Don't provide spelling suggestion for module (#22805)

This commit is contained in:
Andy authored and GitHub committed 2018-03-22 14:27:34 -07:00
1 parent 810b386c2a
commit 94570eedcc
6 files changed
+87 -1

No files matched your search

+2 -1
View File
@@ -16373,7 +16373,8 @@ namespace ts {
const nameLowerCase = name.toLowerCase();
for (const candidate of symbols) {
const candidateName = symbolName(candidate);
if (!(candidate.flags & meaning && Math.abs(candidateName.length - nameLowerCase.length) <= maximumLengthDifference)) {
if (candidateName.charCodeAt(0) === CharacterCodes.doubleQuote
|| !(candidate.flags & meaning && Math.abs(candidateName.length - nameLowerCase.length) <= maximumLengthDifference)) {
continue;
}
const candidateNameLowerCase = candidateName.toLowerCase();