You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/buildProtocol.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ function writeProtocolFile(outputFile: string, protocolTs: string, typeScriptSer
178
178
ts.sys.writeFile(outputFile,protocolDts);
179
179
180
180
if(diagnostics.length){
181
-
constflattenedDiagnostics=diagnostics.map(d=>`${ts.flattenDiagnosticMessageText(d.messageText,"\n")} at ${d.file!.fileName} line ${d.start!}`).join("\n");
181
+
constflattenedDiagnostics=diagnostics.map(d=>`${ts.flattenDiagnosticMessageText(d.messageText,"\n")} at ${d.file ? d.file.fileName : "<unknown>"} line ${d.start}`).join("\n");
182
182
thrownewError(`Unexpected errors during sanity check: ${flattenedDiagnostics}`);
verifyOperationCancelledAfter(file,4,service=>// Two calls are top-level in services, one is the root type, and the second should be for the parameter type
verifyOperationCancelledAfter(file,1,service=>// The LS doesn't do any top-level checks on the token for quickinfo, so the first check is within the checker
verifyOperationCancelledAfter(file,1,service=>// The LS doesn't do any top-level checks on the token for completion entry details, so the first check is within the checker
0 commit comments