Convert legacy safe list keys to lowercase on construction

This commit is contained in:
Andrew Casey
2017-11-20 18:30:28 -08:00
parent cc7b46bb75
commit 9cbe4eb614
2 changed files with 8 additions and 2 deletions

View File

@@ -527,7 +527,9 @@ namespace ts.server {
}
// raw is now fixed and ready
this.safelist = raw.typesMap;
this.legacySafelist = raw.simpleMap;
for (const key in raw.simpleMap) {
this.legacySafelist[key] = raw.simpleMap[key].toLowerCase();
}
}
catch (e) {
this.logger.info(`Error loading types map: ${e}`);