Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
billti committed Feb 1, 2017
1 parent 870e44f commit 3b54f29
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/typingsInstaller.js
Expand Up @@ -7044,8 +7044,7 @@ var ts;
this.log.writeLine("Installing typings " + JSON.stringify(typingsToInstall));
}
var filteredTypings = this.filterTypings(typingsToInstall);
var scopedTypings = filteredTypings.map(function (x) { return "@types/" + x; });
if (scopedTypings.length === 0) {
if (filteredTypings.length === 0) {
if (this.log.isEnabled()) {
this.log.writeLine("All typings are known to be missing or invalid - no need to go any further");
}
Expand All @@ -7060,6 +7059,7 @@ var ts;
typingsInstallerVersion: ts.version,
projectName: req.projectName
});
var scopedTypings = filteredTypings.map(typingsName);
this.installTypingsAsync(requestId, scopedTypings, cachePath, function (ok) {
try {
if (!ok) {
Expand Down Expand Up @@ -7170,6 +7170,11 @@ var ts;
return TypingsInstaller;
}());
typingsInstaller.TypingsInstaller = TypingsInstaller;
function typingsName(packageName) {
return "@types/" + packageName + "@ts" + versionMajorMinor;
}
typingsInstaller.typingsName = typingsName;
var versionMajorMinor = ts.version.split(".").slice(0, 2).join(".");
})(typingsInstaller = server.typingsInstaller || (server.typingsInstaller = {}));
})(server = ts.server || (ts.server = {}));
})(ts || (ts = {}));
Expand Down

0 comments on commit 3b54f29

Please sign in to comment.