From ae884b1a38faf6d8e5269b8d4958d37910bcc0ed Mon Sep 17 00:00:00 2001 From: Andrew Casey Date: Tue, 16 Mar 2021 10:57:10 -0700 Subject: [PATCH] Fix dump of tracing legend (#43263) --- src/compiler/tracing.ts | 1 + src/executeCommandLine/executeCommandLine.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/tracing.ts b/src/compiler/tracing.ts index 151eb3d311d..c9b7e3ca991 100644 --- a/src/compiler/tracing.ts +++ b/src/compiler/tracing.ts @@ -331,4 +331,5 @@ namespace ts { // eslint-disable-line one-namespace-per-file // define after tracingEnabled is initialized export const startTracing = tracingEnabled.startTracing; + export const dumpTracingLegend = tracingEnabled.dumpLegend; } diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index bfe40e661cd..a926f474dd5 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -501,7 +501,7 @@ namespace ts { updateSolutionBuilderHost(sys, cb, buildHost); const builder = createSolutionBuilder(buildHost, projects, buildOptions); const exitStatus = buildOptions.clean ? builder.clean() : builder.build(); - tracing?.dumpLegend(); + dumpTracingLegend(); // Will no-op if there hasn't been any tracing return sys.exit(exitStatus); }