Skip to content

Commit 6953fa1

Browse files
flags--;
1 parent 299002d commit 6953fa1

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

src/compiler/commandLineParser.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ namespace ts {
5656
category: Diagnostics.Command_line_Options,
5757
description: Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental
5858
},
59-
{
60-
name: "diagnosticStyle",
61-
type: createMapFromTemplate({
62-
auto: DiagnosticStyle.Auto,
63-
pretty: DiagnosticStyle.Pretty,
64-
simple: DiagnosticStyle.Simple,
65-
}),
66-
},
6759
{
6860
name: "preserveWatchOutput",
6961
type: "boolean",

src/compiler/tsc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ namespace ts {
2525
}
2626

2727
function shouldBePretty(options: CompilerOptions) {
28-
if ((typeof options.pretty === "undefined" && typeof options.diagnosticStyle === "undefined") || options.diagnosticStyle === DiagnosticStyle.Auto) {
28+
if ((typeof options.pretty === "undefined")) {
2929
return !!sys.writeOutputIsTty && sys.writeOutputIsTty();
3030
}
31-
return options.diagnosticStyle === DiagnosticStyle.Pretty || options.pretty;
31+
return options.pretty;
3232
}
3333

3434
function padLeft(s: string, length: number) {

src/compiler/types.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4194,7 +4194,6 @@ namespace ts {
41944194
/* @internal */ preserveWatchOutput?: boolean;
41954195
project?: string;
41964196
/* @internal */ pretty?: boolean;
4197-
/* @internal */ diagnosticStyle?: DiagnosticStyle;
41984197
reactNamespace?: string;
41994198
jsxFactory?: string;
42004199
removeComments?: boolean;
@@ -4292,13 +4291,6 @@ namespace ts {
42924291
JSX,
42934292
}
42944293

4295-
/* @internal */
4296-
export const enum DiagnosticStyle {
4297-
Auto,
4298-
Pretty,
4299-
Simple,
4300-
}
4301-
43024294
/** Either a parsed command line or a parsed tsconfig.json */
43034295
export interface ParsedCommandLine {
43044296
options: CompilerOptions;

0 commit comments

Comments
 (0)