@@ -29632,14 +29632,15 @@ var ts;
2963229632 }
2963329633 function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags) {
2963429634 var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 148 /* Parameter */);
29635- ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol) && !!parameterSymbol.isRestParameter );
29635+ ts.Debug.assert(!!parameterDeclaration || isTransientSymbol(parameterSymbol));
2963629636 var parameterType = getTypeOfSymbol(parameterSymbol);
2963729637 if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {
2963829638 parameterType = getOptionalType(parameterType);
2963929639 }
2964029640 var parameterTypeNode = typeToTypeNodeHelper(parameterType, context);
2964129641 var modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers && parameterDeclaration.modifiers.map(ts.getSynthesizedClone);
29642- var dotDotDotToken = !parameterDeclaration || ts.isRestParameter(parameterDeclaration) ? ts.createToken(24 /* DotDotDotToken */) : undefined;
29642+ var isRest = parameterDeclaration ? ts.isRestParameter(parameterDeclaration) : parameterSymbol.isRestParameter;
29643+ var dotDotDotToken = isRest ? ts.createToken(24 /* DotDotDotToken */) : undefined;
2964329644 var name = parameterDeclaration
2964429645 ? parameterDeclaration.name ?
2964529646 parameterDeclaration.name.kind === 71 /* Identifier */ ?
@@ -112961,7 +112962,7 @@ var ts;
112961112962 return { configFileName: configFileName, configFileErrors: configFileErrors };
112962112963 };
112963112964 ProjectService.prototype.telemetryOnOpenFile = function (scriptInfo) {
112964- if (!this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
112965+ if (this.syntaxOnly || !this.eventHandler || !scriptInfo.isJavaScript() || !ts.addToSeen(this.allJsFilesForOpenFileTelemetry, scriptInfo.path)) {
112965112966 return;
112966112967 }
112967112968 var info = { checkJs: !!scriptInfo.getDefaultProject().getSourceFile(scriptInfo.path).checkJsDirective };
0 commit comments