mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-21 08:25:43 -05:00
Fix spacing.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user