diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 252ea9e8df0..2de922b4159 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -56,14 +56,14 @@ namespace ts { category: Diagnostics.Command_line_Options, description: Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental }, - { - name: "diagnosticStyle", - type: createMapFromTemplate({ - auto: DiagnosticStyle.Auto, - pretty: DiagnosticStyle.Pretty, - simple: DiagnosticStyle.Simple, - }), - }, + { + name: "diagnosticStyle", + type: createMapFromTemplate({ + auto: DiagnosticStyle.Auto, + pretty: DiagnosticStyle.Pretty, + simple: DiagnosticStyle.Simple, + }), + }, { name: "preserveWatchOutput", type: "boolean", diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index 5012b73e98a..56c3c323f30 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -27,7 +27,7 @@ namespace ts { function shouldBePretty(options: CompilerOptions) { if ((typeof options.pretty === "undefined" && typeof options.diagnosticStyle === "undefined") || options.diagnosticStyle === DiagnosticStyle.Auto) { return !!sys.writeOutputIsTty && sys.writeOutputIsTty(); - } + } return options.diagnosticStyle === DiagnosticStyle.Pretty || options.pretty; }