Skip to content

Commit e7a0f7e

Browse files
Update LKG.
1 parent 476d46b commit e7a0f7e

6 files changed

+9
-212
lines changed

lib/tsc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6161
var ts;
6262
(function (ts) {
6363
ts.versionMajorMinor = "3.2";
64-
ts.version = ts.versionMajorMinor + ".3";
64+
ts.version = ts.versionMajorMinor + ".4";
6565
})(ts || (ts = {}));
6666
(function (ts) {
6767
ts.emptyArray = [];

lib/tsserver.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var ts;
8888
// If changing the text in this section, be sure to test `configureNightly` too.
8989
ts.versionMajorMinor = "3.2";
9090
/** The version of the TypeScript compiler release */
91-
ts.version = ts.versionMajorMinor + ".3";
91+
ts.version = ts.versionMajorMinor + ".4";
9292
})(ts || (ts = {}));
9393
(function (ts) {
9494
/* @internal */
@@ -122606,7 +122606,7 @@ var ts;
122606122606
ProjectService.prototype.setConfigFileExistenceByNewConfiguredProject = function (project) {
122607122607
var configFileExistenceInfo = this.getConfigFileExistenceInfo(project);
122608122608
if (configFileExistenceInfo) {
122609-
ts.Debug.assert(configFileExistenceInfo.exists);
122609+
configFileExistenceInfo.exists = true;
122610122610
if (configFileExistenceInfo.configFileWatcherForRootOfInferredProject) {
122611122611
var configFileName = project.getConfigFilePath();
122612122612
configFileExistenceInfo.configFileWatcherForRootOfInferredProject.close();

lib/tsserverlibrary.js

+3-70
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var ts;
8484
// If changing the text in this section, be sure to test `configureNightly` too.
8585
ts.versionMajorMinor = "3.2";
8686
/** The version of the TypeScript compiler release */
87-
ts.version = ts.versionMajorMinor + ".3";
87+
ts.version = ts.versionMajorMinor + ".4";
8888
})(ts || (ts = {}));
8989
(function (ts) {
9090
/* @internal */
@@ -109075,40 +109075,6 @@ var ts;
109075109075
})(ts || (ts = {}));
109076109076
/* @internal */
109077109077
var ts;
109078-
(function (ts) {
109079-
var codefix;
109080-
(function (codefix) {
109081-
var fixId = "addNameToNamelessParameter";
109082-
var errorCodes = [ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];
109083-
codefix.registerCodeFix({
109084-
errorCodes: errorCodes,
109085-
getCodeActions: function (context) {
109086-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });
109087-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_parameter_name, fixId, ts.Diagnostics.Add_names_to_all_parameters_without_names)];
109088-
},
109089-
fixIds: [fixId],
109090-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },
109091-
});
109092-
function makeChange(changeTracker, sourceFile, pos) {
109093-
var token = ts.getTokenAtPosition(sourceFile, pos);
109094-
if (!ts.isIdentifier(token)) {
109095-
return ts.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a " + ts.formatSyntaxKind(token.kind));
109096-
}
109097-
var param = token.parent;
109098-
if (!ts.isParameter(param)) {
109099-
return ts.Debug.fail("Tried to add a parameter name to a non-parameter: " + ts.formatSyntaxKind(token.kind));
109100-
}
109101-
var i = param.parent.parameters.indexOf(param);
109102-
ts.Debug.assert(!param.type, "Tried to add a parameter name to a parameter that already had one.");
109103-
ts.Debug.assert(i > -1, "Parameter not found in parent parameter list.");
109104-
var replacement = ts.createParameter(
109105-
/*decorators*/ undefined, param.modifiers, param.dotDotDotToken, "arg" + i, param.questionToken, ts.createTypeReferenceNode(token, /*typeArguments*/ undefined), param.initializer);
109106-
changeTracker.replaceNode(sourceFile, token, replacement);
109107-
}
109108-
})(codefix = ts.codefix || (ts.codefix = {}));
109109-
})(ts || (ts = {}));
109110-
/* @internal */
109111-
var ts;
109112109078
(function (ts) {
109113109079
var codefix;
109114109080
(function (codefix) {
@@ -112125,40 +112091,6 @@ var ts;
112125112091
})(ts || (ts = {}));
112126112092
/* @internal */
112127112093
var ts;
112128-
(function (ts) {
112129-
var codefix;
112130-
(function (codefix) {
112131-
var fixId = "addMissingNewOperator";
112132-
var errorCodes = [ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];
112133-
codefix.registerCodeFix({
112134-
errorCodes: errorCodes,
112135-
getCodeActions: function (context) {
112136-
var sourceFile = context.sourceFile, span = context.span;
112137-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingNewOperator(t, sourceFile, span); });
112138-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_new_operator_to_call, fixId, ts.Diagnostics.Add_missing_new_operator_to_all_calls)];
112139-
},
112140-
fixIds: [fixId],
112141-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {
112142-
return addMissingNewOperator(changes, context.sourceFile, diag);
112143-
}); },
112144-
});
112145-
function addMissingNewOperator(changes, sourceFile, span) {
112146-
var call = ts.cast(findAncestorMatchingSpan(sourceFile, span), ts.isCallExpression);
112147-
var newExpression = ts.createNew(call.expression, call.typeArguments, call.arguments);
112148-
changes.replaceNode(sourceFile, call, newExpression);
112149-
}
112150-
function findAncestorMatchingSpan(sourceFile, span) {
112151-
var token = ts.getTokenAtPosition(sourceFile, span.start);
112152-
var end = ts.textSpanEnd(span);
112153-
while (token.end < end) {
112154-
token = token.parent;
112155-
}
112156-
return token;
112157-
}
112158-
})(codefix = ts.codefix || (ts.codefix = {}));
112159-
})(ts || (ts = {}));
112160-
/* @internal */
112161-
var ts;
112162112094
(function (ts) {
112163112095
var codefix;
112164112096
(function (codefix) {
@@ -123047,7 +122979,8 @@ var ts;
123047122979
ProjectService.prototype.setConfigFileExistenceByNewConfiguredProject = function (project) {
123048122980
var configFileExistenceInfo = this.getConfigFileExistenceInfo(project);
123049122981
if (configFileExistenceInfo) {
123050-
ts.Debug.assert(configFileExistenceInfo.exists);
122982+
// The existance might not be set if the file watcher is not invoked by the time config project is created by external project
122983+
configFileExistenceInfo.exists = true;
123051122984
// close existing watcher
123052122985
if (configFileExistenceInfo.configFileWatcherForRootOfInferredProject) {
123053122986
var configFileName = project.getConfigFilePath();

lib/typescript.js

+1-69
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var ts;
7575
// If changing the text in this section, be sure to test `configureNightly` too.
7676
ts.versionMajorMinor = "3.2";
7777
/** The version of the TypeScript compiler release */
78-
ts.version = ts.versionMajorMinor + ".3";
78+
ts.version = ts.versionMajorMinor + ".4";
7979
})(ts || (ts = {}));
8080
(function (ts) {
8181
/* @internal */
@@ -109066,40 +109066,6 @@ var ts;
109066109066
})(ts || (ts = {}));
109067109067
/* @internal */
109068109068
var ts;
109069-
(function (ts) {
109070-
var codefix;
109071-
(function (codefix) {
109072-
var fixId = "addNameToNamelessParameter";
109073-
var errorCodes = [ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];
109074-
codefix.registerCodeFix({
109075-
errorCodes: errorCodes,
109076-
getCodeActions: function (context) {
109077-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });
109078-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_parameter_name, fixId, ts.Diagnostics.Add_names_to_all_parameters_without_names)];
109079-
},
109080-
fixIds: [fixId],
109081-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },
109082-
});
109083-
function makeChange(changeTracker, sourceFile, pos) {
109084-
var token = ts.getTokenAtPosition(sourceFile, pos);
109085-
if (!ts.isIdentifier(token)) {
109086-
return ts.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a " + ts.formatSyntaxKind(token.kind));
109087-
}
109088-
var param = token.parent;
109089-
if (!ts.isParameter(param)) {
109090-
return ts.Debug.fail("Tried to add a parameter name to a non-parameter: " + ts.formatSyntaxKind(token.kind));
109091-
}
109092-
var i = param.parent.parameters.indexOf(param);
109093-
ts.Debug.assert(!param.type, "Tried to add a parameter name to a parameter that already had one.");
109094-
ts.Debug.assert(i > -1, "Parameter not found in parent parameter list.");
109095-
var replacement = ts.createParameter(
109096-
/*decorators*/ undefined, param.modifiers, param.dotDotDotToken, "arg" + i, param.questionToken, ts.createTypeReferenceNode(token, /*typeArguments*/ undefined), param.initializer);
109097-
changeTracker.replaceNode(sourceFile, token, replacement);
109098-
}
109099-
})(codefix = ts.codefix || (ts.codefix = {}));
109100-
})(ts || (ts = {}));
109101-
/* @internal */
109102-
var ts;
109103109069
(function (ts) {
109104109070
var codefix;
109105109071
(function (codefix) {
@@ -112116,40 +112082,6 @@ var ts;
112116112082
})(ts || (ts = {}));
112117112083
/* @internal */
112118112084
var ts;
112119-
(function (ts) {
112120-
var codefix;
112121-
(function (codefix) {
112122-
var fixId = "addMissingNewOperator";
112123-
var errorCodes = [ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];
112124-
codefix.registerCodeFix({
112125-
errorCodes: errorCodes,
112126-
getCodeActions: function (context) {
112127-
var sourceFile = context.sourceFile, span = context.span;
112128-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingNewOperator(t, sourceFile, span); });
112129-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_new_operator_to_call, fixId, ts.Diagnostics.Add_missing_new_operator_to_all_calls)];
112130-
},
112131-
fixIds: [fixId],
112132-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {
112133-
return addMissingNewOperator(changes, context.sourceFile, diag);
112134-
}); },
112135-
});
112136-
function addMissingNewOperator(changes, sourceFile, span) {
112137-
var call = ts.cast(findAncestorMatchingSpan(sourceFile, span), ts.isCallExpression);
112138-
var newExpression = ts.createNew(call.expression, call.typeArguments, call.arguments);
112139-
changes.replaceNode(sourceFile, call, newExpression);
112140-
}
112141-
function findAncestorMatchingSpan(sourceFile, span) {
112142-
var token = ts.getTokenAtPosition(sourceFile, span.start);
112143-
var end = ts.textSpanEnd(span);
112144-
while (token.end < end) {
112145-
token = token.parent;
112146-
}
112147-
return token;
112148-
}
112149-
})(codefix = ts.codefix || (ts.codefix = {}));
112150-
})(ts || (ts = {}));
112151-
/* @internal */
112152-
var ts;
112153112085
(function (ts) {
112154112086
var codefix;
112155112087
(function (codefix) {

lib/typescriptServices.js

+1-69
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var ts;
7575
// If changing the text in this section, be sure to test `configureNightly` too.
7676
ts.versionMajorMinor = "3.2";
7777
/** The version of the TypeScript compiler release */
78-
ts.version = ts.versionMajorMinor + ".3";
78+
ts.version = ts.versionMajorMinor + ".4";
7979
})(ts || (ts = {}));
8080
(function (ts) {
8181
/* @internal */
@@ -109066,40 +109066,6 @@ var ts;
109066109066
})(ts || (ts = {}));
109067109067
/* @internal */
109068109068
var ts;
109069-
(function (ts) {
109070-
var codefix;
109071-
(function (codefix) {
109072-
var fixId = "addNameToNamelessParameter";
109073-
var errorCodes = [ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];
109074-
codefix.registerCodeFix({
109075-
errorCodes: errorCodes,
109076-
getCodeActions: function (context) {
109077-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });
109078-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_parameter_name, fixId, ts.Diagnostics.Add_names_to_all_parameters_without_names)];
109079-
},
109080-
fixIds: [fixId],
109081-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },
109082-
});
109083-
function makeChange(changeTracker, sourceFile, pos) {
109084-
var token = ts.getTokenAtPosition(sourceFile, pos);
109085-
if (!ts.isIdentifier(token)) {
109086-
return ts.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a " + ts.formatSyntaxKind(token.kind));
109087-
}
109088-
var param = token.parent;
109089-
if (!ts.isParameter(param)) {
109090-
return ts.Debug.fail("Tried to add a parameter name to a non-parameter: " + ts.formatSyntaxKind(token.kind));
109091-
}
109092-
var i = param.parent.parameters.indexOf(param);
109093-
ts.Debug.assert(!param.type, "Tried to add a parameter name to a parameter that already had one.");
109094-
ts.Debug.assert(i > -1, "Parameter not found in parent parameter list.");
109095-
var replacement = ts.createParameter(
109096-
/*decorators*/ undefined, param.modifiers, param.dotDotDotToken, "arg" + i, param.questionToken, ts.createTypeReferenceNode(token, /*typeArguments*/ undefined), param.initializer);
109097-
changeTracker.replaceNode(sourceFile, token, replacement);
109098-
}
109099-
})(codefix = ts.codefix || (ts.codefix = {}));
109100-
})(ts || (ts = {}));
109101-
/* @internal */
109102-
var ts;
109103109069
(function (ts) {
109104109070
var codefix;
109105109071
(function (codefix) {
@@ -112116,40 +112082,6 @@ var ts;
112116112082
})(ts || (ts = {}));
112117112083
/* @internal */
112118112084
var ts;
112119-
(function (ts) {
112120-
var codefix;
112121-
(function (codefix) {
112122-
var fixId = "addMissingNewOperator";
112123-
var errorCodes = [ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];
112124-
codefix.registerCodeFix({
112125-
errorCodes: errorCodes,
112126-
getCodeActions: function (context) {
112127-
var sourceFile = context.sourceFile, span = context.span;
112128-
var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingNewOperator(t, sourceFile, span); });
112129-
return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_new_operator_to_call, fixId, ts.Diagnostics.Add_missing_new_operator_to_all_calls)];
112130-
},
112131-
fixIds: [fixId],
112132-
getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {
112133-
return addMissingNewOperator(changes, context.sourceFile, diag);
112134-
}); },
112135-
});
112136-
function addMissingNewOperator(changes, sourceFile, span) {
112137-
var call = ts.cast(findAncestorMatchingSpan(sourceFile, span), ts.isCallExpression);
112138-
var newExpression = ts.createNew(call.expression, call.typeArguments, call.arguments);
112139-
changes.replaceNode(sourceFile, call, newExpression);
112140-
}
112141-
function findAncestorMatchingSpan(sourceFile, span) {
112142-
var token = ts.getTokenAtPosition(sourceFile, span.start);
112143-
var end = ts.textSpanEnd(span);
112144-
while (token.end < end) {
112145-
token = token.parent;
112146-
}
112147-
return token;
112148-
}
112149-
})(codefix = ts.codefix || (ts.codefix = {}));
112150-
})(ts || (ts = {}));
112151-
/* @internal */
112152-
var ts;
112153112085
(function (ts) {
112154112086
var codefix;
112155112087
(function (codefix) {

lib/typingsInstaller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var ts;
8888
// If changing the text in this section, be sure to test `configureNightly` too.
8989
ts.versionMajorMinor = "3.2";
9090
/** The version of the TypeScript compiler release */
91-
ts.version = ts.versionMajorMinor + ".3";
91+
ts.version = ts.versionMajorMinor + ".4";
9292
})(ts || (ts = {}));
9393
(function (ts) {
9494
/* @internal */

0 commit comments

Comments
 (0)