Skip to content

Update descriptions of --allowUnusedLabels and --allowUnreachableCode #24320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/compiler/commandLineParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,14 +697,14 @@ namespace ts {
type: "boolean",
affectsSemanticDiagnostics: true,
category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_report_errors_on_unused_labels
description: Diagnostics.Controls_showing_errors_for_unused_labels_true_Colon_Never_show_errors_false_Colon_Always_show_errors_unspecified_Colon_Show_errors_in_editor_but_not_command_line,
},
{
name: "allowUnreachableCode",
type: "boolean",
affectsSemanticDiagnostics: true,
category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_report_errors_on_unreachable_code
description: Diagnostics.Controls_showing_errors_for_unreachable_code_true_Colon_Never_show_errors_false_Colon_Always_show_errors_unspecified_Colon_Show_errors_in_editor_but_not_command_line,
},
{
name: "suppressExcessPropertyErrors",
Expand Down
4 changes: 2 additions & 2 deletions src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3150,7 +3150,7 @@
"category": "Message",
"code": 6073
},
"Do not report errors on unused labels.": {
"Controls showing errors for unused labels. 'true': Never show errors; 'false': Always show errors; unspecified: Show errors in editor, but not command line.": {
"category": "Message",
"code": 6074
},
Expand All @@ -3162,7 +3162,7 @@
"category": "Message",
"code": 6076
},
"Do not report errors on unreachable code.": {
"Controls showing errors for unreachable code. 'true': Never show errors; 'false': Always show errors; unspecified: Show errors in editor, but not command line.": {
"category": "Message",
"code": 6077
},
Expand Down