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

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

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();