Skip to content

Validate error code names#3453

Merged
amcasey merged 4 commits into
mainfrom
amcasey/ErrorCodes
Jul 16, 2026
Merged

Validate error code names#3453
amcasey merged 4 commits into
mainfrom
amcasey/ErrorCodes

Conversation

@amcasey

@amcasey amcasey commented Jul 10, 2026

Copy link
Copy Markdown
Member

They should have at least two dot-delimited segments and the first should be from a known list.

Add the test to the LS since it seems like it would have to depend on all the packages declaring error codes anyway.

They should have at least two dot-delimited segments and the first should be from a known list.

Add the test to the LS since it seems like it would have to depend on all the packages declaring error codes anyway.
Comment thread source/language_service/tests/diagnostic_codes.rs Outdated
@amcasey amcasey requested a review from joao-boechat July 10, 2026 22:52
@amcasey amcasey force-pushed the amcasey/ErrorCodes branch from 9df7316 to 6ea7ff5 Compare July 10, 2026 22:52
@amcasey amcasey marked this pull request as ready for review July 10, 2026 22:53

@ScottCarda-MS ScottCarda-MS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting analysis of Rust source files to check for invalid error codes.

@joao-boechat joao-boechat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these tests, they look great! Just a couple minor suggestions

Comment thread source/language_service/tests/diagnostic_codes.rs Outdated
Comment thread source/language_service/tests/diagnostic_codes.rs Outdated
Comment thread source/language_service/tests/diagnostic_codes.rs Outdated
Comment thread source/language_service/tests/diagnostic_codes.rs Outdated
@amcasey amcasey enabled auto-merge July 15, 2026 00:13
@amcasey amcasey disabled auto-merge July 15, 2026 23:48
@amcasey amcasey enabled auto-merge July 15, 2026 23:49
@amcasey amcasey added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 64bcb4a Jul 16, 2026
13 checks passed
@amcasey amcasey deleted the amcasey/ErrorCodes branch July 16, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants