@@ -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 */
109077109077var 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 */
112127112093var 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();
0 commit comments