Refactor the tracing namespace organization

Also changes the `tracingEnabled.Mode.*` enum to a string union.
This commit is contained in:
Eli Barzilay
2021-02-09 13:16:37 -05:00
parent b7922147d3
commit 4fc9c8446d
3 changed files with 257 additions and 265 deletions

View File

@@ -666,7 +666,7 @@ namespace ts {
}
if (canTrace(system, compilerOptions)) {
startTracing(isBuildMode ? tracingEnabled.Mode.Build : tracingEnabled.Mode.Project,
startTracing(isBuildMode ? "build" : "project",
compilerOptions.generateTrace!, compilerOptions.configFilePath);
}
}