File tree Expand file tree Collapse file tree 4 files changed +9
-18
lines changed Expand file tree Collapse file tree 4 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ namespace ts {
21
21
name : "diagnostics" ,
22
22
type : "boolean" ,
23
23
} ,
24
- {
25
- name : "diagnosticStyle" ,
26
- paramType : Diagnostics . KIND ,
27
- description : Diagnostics . Specify_diagnostic_printing_style_Colon_simple_default_or_pretty ,
28
- type : {
29
- "simple" : DiagnosticStyle . Simple ,
30
- "pretty" : DiagnosticStyle . Pretty ,
31
- } ,
32
- error : Diagnostics . Argument_for_diagnosticStyle_must_be_simple_or_pretty ,
33
- experimental : true ,
34
- } ,
35
24
{
36
25
name : "emitBOM" ,
37
26
type : "boolean"
@@ -162,6 +151,12 @@ namespace ts {
162
151
type : "boolean" ,
163
152
description : Diagnostics . Do_not_erase_const_enum_declarations_in_generated_code
164
153
} ,
154
+ {
155
+ name : "pretty" ,
156
+ paramType : Diagnostics . KIND ,
157
+ description : Diagnostics . Stylize_errors_and_messages_using_colors_if_available_experimental ,
158
+ type : "boolean"
159
+ } ,
165
160
{
166
161
name : "project" ,
167
162
shortName : "p" ,
Original file line number Diff line number Diff line change 2286
2286
"category" : " Message" ,
2287
2287
"code" : 6072
2288
2288
},
2289
- "Specify diagnostic printing style: 'simple' (default) or 'pretty'. " : {
2289
+ "Stylize errors and messages using colors if available. (experimental) " : {
2290
2290
"category" : " Message" ,
2291
2291
"code" : 6073
2292
2292
},
2293
- "Argument for '--diagnosticStyle' must be 'simple' or 'pretty'." : {
2294
- "category" : " Error" ,
2295
- "code" : 6074
2296
- },
2297
2293
2298
2294
"Specify JSX code generation: 'preserve' or 'react'" : {
2299
2295
"category" : " Message" ,
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ namespace ts {
374
374
compilerHost . fileExists = cachedFileExists ;
375
375
}
376
376
377
- if ( compilerOptions . diagnosticStyle === DiagnosticStyle . Pretty ) {
377
+ if ( compilerOptions . pretty ) {
378
378
reportDiagnostic = reportDiagnosticWithColorAndContext ;
379
379
}
380
380
Original file line number Diff line number Diff line change @@ -2053,7 +2053,6 @@ namespace ts {
2053
2053
charset ?: string ;
2054
2054
declaration ?: boolean ;
2055
2055
diagnostics ?: boolean ;
2056
- /* @internal */ diagnosticStyle ?: DiagnosticStyle ;
2057
2056
emitBOM ?: boolean ;
2058
2057
help ?: boolean ;
2059
2058
init ?: boolean ;
@@ -2076,6 +2075,7 @@ namespace ts {
2076
2075
outFile ?: string ;
2077
2076
outDir ?: string ;
2078
2077
preserveConstEnums ?: boolean ;
2078
+ /* @internal */ pretty ?: DiagnosticStyle ;
2079
2079
project ?: string ;
2080
2080
removeComments ?: boolean ;
2081
2081
rootDir ?: string ;
You can’t perform that action at this time.
0 commit comments