Skip to content

Commit ae884b1

Browse files
authored
Fix dump of tracing legend (microsoft#43263)
1 parent ea92e3f commit ae884b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/compiler/tracing.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,5 @@ namespace ts { // eslint-disable-line one-namespace-per-file
331331

332332
// define after tracingEnabled is initialized
333333
export const startTracing = tracingEnabled.startTracing;
334+
export const dumpTracingLegend = tracingEnabled.dumpLegend;
334335
}

src/executeCommandLine/executeCommandLine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ namespace ts {
501501
updateSolutionBuilderHost(sys, cb, buildHost);
502502
const builder = createSolutionBuilder(buildHost, projects, buildOptions);
503503
const exitStatus = buildOptions.clean ? builder.clean() : builder.build();
504-
tracing?.dumpLegend();
504+
dumpTracingLegend(); // Will no-op if there hasn't been any tracing
505505
return sys.exit(exitStatus);
506506
}
507507

0 commit comments

Comments
 (0)