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

@@ -861,7 +861,7 @@ namespace ts.server {
? stripQuotes(commandLineTraceDir)
: process.env.TSS_TRACE;
if (traceDir) {
startTracing(tracingEnabled.Mode.Server, traceDir);
startTracing("server", traceDir);
}
const ioSession = new IOSession();