File tree Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Expand file tree Collapse file tree 3 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,6 @@ namespace ts {
56
56
category : Diagnostics . Command_line_Options ,
57
57
description : Diagnostics . Stylize_errors_and_messages_using_color_and_context_experimental
58
58
} ,
59
- {
60
- name : "diagnosticStyle" ,
61
- type : createMapFromTemplate ( {
62
- auto : DiagnosticStyle . Auto ,
63
- pretty : DiagnosticStyle . Pretty ,
64
- simple : DiagnosticStyle . Simple ,
65
- } ) ,
66
- } ,
67
59
{
68
60
name : "preserveWatchOutput" ,
69
61
type : "boolean" ,
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ namespace ts {
25
25
}
26
26
27
27
function shouldBePretty ( options : CompilerOptions ) {
28
- if ( ( typeof options . pretty === "undefined" && typeof options . diagnosticStyle === "undefined" ) || options . diagnosticStyle === DiagnosticStyle . Auto ) {
28
+ if ( ( typeof options . pretty === "undefined" ) ) {
29
29
return ! ! sys . writeOutputIsTty && sys . writeOutputIsTty ( ) ;
30
30
}
31
- return options . diagnosticStyle === DiagnosticStyle . Pretty || options . pretty ;
31
+ return options . pretty ;
32
32
}
33
33
34
34
function padLeft ( s : string , length : number ) {
Original file line number Diff line number Diff line change @@ -4194,7 +4194,6 @@ namespace ts {
4194
4194
/* @internal */ preserveWatchOutput ?: boolean ;
4195
4195
project ?: string ;
4196
4196
/* @internal */ pretty ?: boolean ;
4197
- /* @internal */ diagnosticStyle ?: DiagnosticStyle ;
4198
4197
reactNamespace ?: string ;
4199
4198
jsxFactory ?: string ;
4200
4199
removeComments ?: boolean ;
@@ -4292,13 +4291,6 @@ namespace ts {
4292
4291
JSX ,
4293
4292
}
4294
4293
4295
- /* @internal */
4296
- export const enum DiagnosticStyle {
4297
- Auto ,
4298
- Pretty ,
4299
- Simple ,
4300
- }
4301
-
4302
4294
/** Either a parsed command line or a parsed tsconfig.json */
4303
4295
export interface ParsedCommandLine {
4304
4296
options : CompilerOptions ;
You can’t perform that action at this time.
0 commit comments