提交 0693e8ba 编写于 作者: D Dirk Baeumer

Update to tsserver 1.8.7

上级 01be0ac7
......@@ -20235,6 +20235,7 @@ var ts;
checkGrammarForGenerator(node);
}
if (contextualMapper === identityMapper && isContextSensitive(node)) {
checkNodeDeferred(node);
return anyFunctionType;
}
var links = getNodeLinks(node);
......@@ -25510,7 +25511,7 @@ var ts;
function getDeclarationDiagnostics(host, resolver, targetSourceFile) {
var declarationDiagnostics = ts.createDiagnosticCollection();
ts.forEachExpectedEmitFile(host, getDeclarationDiagnosticsFromFile, targetSourceFile);
return declarationDiagnostics.getDiagnostics(targetSourceFile.fileName);
return declarationDiagnostics.getDiagnostics(targetSourceFile ? targetSourceFile.fileName : undefined);
function getDeclarationDiagnosticsFromFile(_a, sources, isBundledEmit) {
var declarationFilePath = _a.declarationFilePath;
emitDeclarations(host, resolver, declarationDiagnostics, declarationFilePath, sources, isBundledEmit);
......@@ -33033,7 +33034,7 @@ var ts;
ts.ioReadTime = 0;
ts.ioWriteTime = 0;
var emptyArray = [];
ts.version = "1.8.2";
ts.version = "1.8.7";
function findConfigFile(searchPath, fileExists) {
var fileName = "tsconfig.json";
while (true) {
......@@ -33540,7 +33541,13 @@ var ts;
return getDiagnosticsHelper(sourceFile, getSemanticDiagnosticsForFile, cancellationToken);
}
function getDeclarationDiagnostics(sourceFile, cancellationToken) {
return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);
var options = program.getCompilerOptions();
if (!sourceFile || options.out || options.outFile) {
return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);
}
else {
return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);
}
}
function getSyntacticDiagnosticsForFile(sourceFile, cancellationToken) {
return sourceFile.parseDiagnostics;
......@@ -33721,15 +33728,16 @@ var ts;
}
});
}
function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) {
function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) {
return runWithCancellationToken(function () {
if (!ts.isDeclarationFile(sourceFile)) {
var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile, cancellationToken);
var writeFile_1 = function () { };
return ts.getDeclarationDiagnostics(getEmitHost(writeFile_1), resolver, sourceFile);
}
var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile, cancellationToken);
var writeFile = function () { };
return ts.getDeclarationDiagnostics(getEmitHost(writeFile), resolver, sourceFile);
});
}
function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) {
return ts.isDeclarationFile(sourceFile) ? [] : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);
}
function getOptionsDiagnostics() {
var allDiagnostics = [];
ts.addRange(allDiagnostics, fileProcessingDiagnostics.getGlobalDiagnostics());
......@@ -4,7 +4,7 @@
"name": "Microsoft Corp."
},
"homepage": "http://typescriptlang.org/",
"version": "1.8.2",
"version": "1.8.7",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [
......@@ -19,7 +19,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/TypeScript.git"
"url": "git+https://github.com/Microsoft/TypeScript.git"
},
"main": "./lib/typescript.js",
"typings": "./lib/typescript.d.ts",
......@@ -58,9 +58,9 @@
"os": false,
"path": false
},
"gitHead": "e5dd34f9e69f517182abfc996a10b8312b14e015",
"_id": "typescript@1.8.2",
"_shasum": "4d2ad7db172be67a913d09862b510133bad61b33",
"gitHead": "c9cf5f9cc2a781c9bdb00206d9a1038b53be6bda",
"_id": "typescript@1.8.7",
"_shasum": "35e3838de31c91cfe1d8c20e0e5785d386938a49",
"_from": "typescript@latest",
"_npmVersion": "2.0.0",
"_npmUser": {
......@@ -74,9 +74,14 @@
}
],
"dist": {
"shasum": "4d2ad7db172be67a913d09862b510133bad61b33",
"tarball": "http://registry.npmjs.org/typescript/-/typescript-1.8.2.tgz"
"shasum": "35e3838de31c91cfe1d8c20e0e5785d386938a49",
"tarball": "http://registry.npmjs.org/typescript/-/typescript-1.8.7.tgz"
},
"_npmOperationalInternal": {
"host": "packages-11-east.internal.npmjs.com",
"tmp": "tmp/typescript-1.8.7.tgz_1456882108211_0.4195348753128201"
},
"directories": {},
"_resolved": "https://registry.npmjs.org/typescript/-/typescript-1.8.2.tgz"
"_resolved": "https://registry.npmjs.org/typescript/-/typescript-1.8.7.tgz",
"readme": "ERROR: No README data found!"
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册