Skip to content

🤖 Sync option descriptions <- website #46465

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

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

jablko
Copy link
Contributor

@jablko jablko commented Oct 21, 2021

Get command-line option descriptions from the website Markdown and update their corresponding descriptions in the compiler.

/cc @orta

@jablko jablko force-pushed the sync-option-descriptions branch from 9e4ad36 to 45137e4 Compare October 21, 2021 19:02
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Oct 21, 2021
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@jablko jablko marked this pull request as draft October 21, 2021 19:05
@orta
Copy link
Contributor

orta commented Oct 21, 2021

you might have changed the line endings on the JSON file - the diff is basically the file

https://twitter.com/kclemson/status/1451238009664278528

@jablko jablko force-pushed the sync-option-descriptions branch from 45137e4 to 3a921d7 Compare October 21, 2021 20:49
@jablko
Copy link
Contributor Author

jablko commented Oct 21, 2021

Thanks! I've now added .replace(/\n/g, "\r\n")

@jablko jablko force-pushed the sync-option-descriptions branch 7 times, most recently from f3ba7a7 to 5c12658 Compare October 22, 2021 18:07
@jablko jablko changed the title 🤖 Sync option descriptions <- jablko/TypeScript-Website 🤖 Sync option descriptions <- website Oct 22, 2021
@jablko jablko marked this pull request as ready for review October 23, 2021 00:26
@jablko jablko force-pushed the sync-option-descriptions branch from c9a620e to 9dd95d3 Compare November 10, 2021 15:51
@sandersn sandersn requested a review from orta November 17, 2021 23:56
@jablko jablko force-pushed the sync-option-descriptions branch 3 times, most recently from fd400dd to 1d05a00 Compare February 7, 2022 15:37
@@ -288,7 +288,7 @@ namespace ts {
shortName: "i",
type: "boolean",
category: Diagnostics.Projects,
description: Diagnostics.Enable_incremental_compilation,
description: Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -693,7 +693,7 @@ namespace ts {
affectsSemanticDiagnostics: true,
strictFlag: true,
category: Diagnostics.Type_Checking,
description: Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -693,7 +693,7 @@ namespace ts {
affectsSemanticDiagnostics: true,
strictFlag: true,
category: Diagnostics.Type_Checking,
description: Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -712,7 +712,7 @@ namespace ts {
type: "boolean",
affectsSemanticDiagnostics: true,
category: Diagnostics.Type_Checking,
description: Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,
description: Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -753,7 +753,7 @@ namespace ts {
type: "boolean",
affectsSemanticDiagnostics: true,
category: Diagnostics.Type_Checking,
description: Diagnostics.Include_undefined_in_index_signature_results,
description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1234,7 +1234,7 @@ namespace ts {
name: "plugin",
type: "object"
},
description: Diagnostics.List_of_language_service_plugins,
description: Diagnostics.Specify_a_list_of_language_service_plugins_to_include,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jablko jablko force-pushed the sync-option-descriptions branch 3 times, most recently from a08f40c to 5be2def Compare February 16, 2022 14:54
@jablko jablko force-pushed the sync-option-descriptions branch from 8073d7e to 4e0dc98 Compare February 20, 2022 01:18
@sandersn sandersn requested review from gabritto and removed request for orta February 25, 2022 02:30
@sandersn sandersn assigned gabritto and unassigned orta Feb 25, 2022
@jablko jablko force-pushed the sync-option-descriptions branch from 66bad71 to 4b7a341 Compare March 6, 2022 01:18
@@ -1,94 +0,0 @@
tests/cases/conformance/classes/classStaticBlock/classStaticBlock22.ts(4,9): error TS1359: Identifier expected. 'await' is a reserved word that cannot be used here.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why have this and a bunch of other files been deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabritto Hi! They're baselines for tests that no longer exist --- they're removed by the Accept Baselines and Fix Lints workflow:

@@ -879,7 +879,6 @@
"category": "Error",
"code": 1271
},

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whitespace here is a little useful for pointing out the gap between 1271 and 1300. I'd prefer to keep it and the others that are like it.

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment about empty lines, but other than that I think we're good to go

@@ -879,7 +879,6 @@
"category": "Error",
"code": 1271
},

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as Nathan commented, please leave the blank lines as-is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @gabritto Thanks! I've restored the blank lines.

@jablko jablko force-pushed the sync-option-descriptions branch from aaeb257 to ba9ba2b Compare March 8, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants