@@ -288,7 +288,7 @@ var ts;
288288 // If changing the text in this section, be sure to test `configurePrerelease` too.
289289 ts.versionMajorMinor = "4.1";
290290 /** The version of the TypeScript compiler release */
291- ts.version = "4.1.2 ";
291+ ts.version = "4.1.3 ";
292292 /* @internal */
293293 var Comparison;
294294 (function (Comparison) {
@@ -45888,7 +45888,7 @@ var ts;
4588845888 var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
4588945889 var name = node.propertyName || node.name;
4589045890 if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
45891- return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
45891+ return resolveSymbol( getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias );
4589245892 }
4589345893 markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
4589445894 return resolved;
@@ -63317,6 +63317,7 @@ var ts;
6331763317 return errorType;
6331863318 }
6331963319 flowDepth++;
63320+ var sharedFlow;
6332063321 while (true) {
6332163322 var flags = flow.flags;
6332263323 if (flags & 4096 /* Shared */) {
@@ -63329,6 +63330,7 @@ var ts;
6332963330 return sharedFlowTypes[i];
6333063331 }
6333163332 }
63333+ sharedFlow = flow;
6333263334 }
6333363335 var type = void 0;
6333463336 if (flags & 16 /* Assignment */) {
@@ -63392,9 +63394,9 @@ var ts;
6339263394 // simply return the non-auto declared type to reduce follow-on errors.
6339363395 type = convertAutoToAny(declaredType);
6339463396 }
63395- if (flags & 4096 /* Shared */ ) {
63397+ if (sharedFlow ) {
6339663398 // Record visited node and the associated type in the cache.
63397- sharedFlowNodes[sharedFlowCount] = flow ;
63399+ sharedFlowNodes[sharedFlowCount] = sharedFlow ;
6339863400 sharedFlowTypes[sharedFlowCount] = type;
6339963401 sharedFlowCount++;
6340063402 }
@@ -68561,9 +68563,9 @@ var ts;
6856168563 var oldCandidatesForArgumentError = candidatesForArgumentError;
6856268564 var oldCandidateForArgumentArityError = candidateForArgumentArityError;
6856368565 var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
68564- var declCount = ts.length(( _a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
68565- var isOverload = declCount > 1;
68566- var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray , function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68566+ var failedSignatureDeclarations = ((_b = ( _a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b .declarations) || ts.emptyArray ;
68567+ var isOverload = failedSignatureDeclarations.length > 1;
68568+ var implDecl = isOverload ? ts.find(failedSignatureDeclarations , function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
6856768569 if (implDecl) {
6856868570 var candidate = getSignatureFromDeclaration(implDecl);
6856968571 var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
@@ -150175,6 +150177,8 @@ var ts;
150175150177 JsxEmit["Preserve"] = "Preserve";
150176150178 JsxEmit["ReactNative"] = "ReactNative";
150177150179 JsxEmit["React"] = "React";
150180+ JsxEmit["ReactJSX"] = "ReactJSX";
150181+ JsxEmit["ReactJSXDev"] = "ReactJSXDev";
150178150182 })(JsxEmit = protocol.JsxEmit || (protocol.JsxEmit = {}));
150179150183 var ModuleKind;
150180150184 (function (ModuleKind) {
@@ -150185,6 +150189,7 @@ var ts;
150185150189 ModuleKind["System"] = "System";
150186150190 ModuleKind["ES6"] = "ES6";
150187150191 ModuleKind["ES2015"] = "ES2015";
150192+ ModuleKind["ES2020"] = "ES2020";
150188150193 ModuleKind["ESNext"] = "ESNext";
150189150194 })(ModuleKind = protocol.ModuleKind || (protocol.ModuleKind = {}));
150190150195 var ModuleResolutionKind;
@@ -150208,6 +150213,7 @@ var ts;
150208150213 ScriptTarget["ES2018"] = "ES2018";
150209150214 ScriptTarget["ES2019"] = "ES2019";
150210150215 ScriptTarget["ES2020"] = "ES2020";
150216+ ScriptTarget["JSON"] = "JSON";
150211150217 ScriptTarget["ESNext"] = "ESNext";
150212150218 })(ScriptTarget = protocol.ScriptTarget || (protocol.ScriptTarget = {}));
150213150219 })(protocol = server.protocol || (server.protocol = {}));
@@ -157272,7 +157278,7 @@ var ts;
157272157278 };
157273157279 Session.prototype.getEncodedSemanticClassifications = function (args) {
157274157280 var _a = this.getFileAndProject(args), file = _a.file, project = _a.project;
157275- return project.getLanguageService().getEncodedSemanticClassifications(file, args);
157281+ return project.getLanguageService().getEncodedSemanticClassifications(file, args, args.format );
157276157282 };
157277157283 Session.prototype.getProject = function (projectFileName) {
157278157284 return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);
0 commit comments