Skip to content
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

Provide all possible keywords in xml doc comment langword tag #72694

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

DoctorKrolic
Copy link
Contributor

Fixes: #72258

@DoctorKrolic DoctorKrolic requested a review from a team as a code owner March 23, 2024 15:34
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Mar 23, 2024

foreach (var keywordKind in SyntaxFacts.GetKeywordKinds())
{
var keywordText = SyntaxFacts.GetText(keywordKind);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is reusing the same logic as the actual product code, which isn't great for a test at all, but I cannot think of a better solution here. Another option is to manually list all keywords we need to check for, but this is an unmanageble nightmare. We sort of want keyword list to be tight to SyntaxFacts.GetKeywordKinds, so as new keywords are added to the language we immediately test that they are in the list. Same thing on VB side

@CyrusNajmabadi
Copy link
Member

test failure seems legit.

@DoctorKrolic
Copy link
Contributor Author

@CyrusNajmabadi PTAL

@CyrusNajmabadi CyrusNajmabadi merged commit 8a08c8c into dotnet:main Mar 25, 2024
27 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks!

@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 25, 2024
@DoctorKrolic DoctorKrolic deleted the more-xml-keywords branch March 25, 2024 15:42
@RikkiGibson RikkiGibson modified the milestones: Next, 17.10 P3 Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A ton of C# keywords are missing in langword doc comment tag completions
3 participants