mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Convert legacy safe list keys to lowercase on construction
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user