@@ -29571,7 +29571,7 @@ var ts;
2957129571 /* @internal */ ts.ioReadTime = 0;
2957229572 /* @internal */ ts.ioWriteTime = 0;
2957329573 /** The version of the TypeScript compiler release */
29574- ts.version = "1.5.0 ";
29574+ ts.version = "1.5.2 ";
2957529575 var carriageReturnLineFeed = "\r\n";
2957629576 var lineFeed = "\n";
2957729577 function findConfigFile(searchPath) {
@@ -36487,8 +36487,9 @@ var ts;
3648736487 // at each language service public entry point, since we don't know when
3648836488 // set of scripts handled by the host changes.
3648936489 var HostCache = (function () {
36490- function HostCache(host) {
36490+ function HostCache(host, getCanonicalFileName ) {
3649136491 this.host = host;
36492+ this.getCanonicalFileName = getCanonicalFileName;
3649236493 // script id => script index
3649336494 this.fileNameToEntry = {};
3649436495 // Initialize the list with the root file names
@@ -36503,6 +36504,9 @@ var ts;
3650336504 HostCache.prototype.compilationSettings = function () {
3650436505 return this._compilationSettings;
3650536506 };
36507+ HostCache.prototype.normalizeFileName = function (fileName) {
36508+ return this.getCanonicalFileName(ts.normalizeSlashes(fileName));
36509+ };
3650636510 HostCache.prototype.createEntry = function (fileName) {
3650736511 var entry;
3650836512 var scriptSnapshot = this.host.getScriptSnapshot(fileName);
@@ -36513,13 +36517,13 @@ var ts;
3651336517 scriptSnapshot: scriptSnapshot
3651436518 };
3651536519 }
36516- return this.fileNameToEntry[ts.normalizeSlashes (fileName)] = entry;
36520+ return this.fileNameToEntry[this.normalizeFileName (fileName)] = entry;
3651736521 };
3651836522 HostCache.prototype.getEntry = function (fileName) {
36519- return ts.lookUp(this.fileNameToEntry, ts.normalizeSlashes (fileName));
36523+ return ts.lookUp(this.fileNameToEntry, this.normalizeFileName (fileName));
3652036524 };
3652136525 HostCache.prototype.contains = function (fileName) {
36522- return ts.hasProperty(this.fileNameToEntry, ts.normalizeSlashes (fileName));
36526+ return ts.hasProperty(this.fileNameToEntry, this.normalizeFileName (fileName));
3652336527 };
3652436528 HostCache.prototype.getOrCreateEntry = function (fileName) {
3652536529 if (this.contains(fileName)) {
@@ -36531,8 +36535,10 @@ var ts;
3653136535 var _this = this;
3653236536 var fileNames = [];
3653336537 ts.forEachKey(this.fileNameToEntry, function (key) {
36534- if (ts.hasProperty(_this.fileNameToEntry, key) && _this.fileNameToEntry[key])
36535- fileNames.push(key);
36538+ var entry = _this.getEntry(key);
36539+ if (entry) {
36540+ fileNames.push(entry.hostFileName);
36541+ }
3653636542 });
3653736543 return fileNames;
3653836544 };
@@ -37151,7 +37157,7 @@ var ts;
3715137157 }
3715237158 function synchronizeHostData() {
3715337159 // Get a fresh cache of the host information
37154- var hostCache = new HostCache(host);
37160+ var hostCache = new HostCache(host, getCanonicalFileName );
3715537161 // If the program is already up-to-date, we can reuse it
3715637162 if (programUpToDate()) {
3715737163 return;
@@ -37168,7 +37174,7 @@ var ts;
3716837174 var newProgram = ts.createProgram(hostCache.getRootFileNames(), newSettings, {
3716937175 getSourceFile: getOrCreateSourceFile,
3717037176 getCancellationToken: function () { return cancellationToken; },
37171- getCanonicalFileName: function (fileName) { return useCaseSensitivefileNames ? fileName : fileName.toLowerCase(); } ,
37177+ getCanonicalFileName: getCanonicalFileName ,
3717237178 useCaseSensitiveFileNames: function () { return useCaseSensitivefileNames; },
3717337179 getNewLine: function () { return host.getNewLine ? host.getNewLine() : "\r\n"; },
3717437180 getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); },
0 commit comments