-
Notifications
You must be signed in to change notification settings - Fork 6k
[WIP] Update F1 keywords for tokens with multiple uses #47074
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
Conversation
Hi @copilot Can you start working on this again? |
I'll start working on the remaining F1 keywords for tokens with multiple uses. I'll focus on the uncompleted items in the checklist: enum, in, new, out, ref, this, and using. |
Co-authored-by: BillWagner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good start but it needs changes.
An f1_keyword
can only have one target file. Where a keyword (like in
) has multiple uses, the file for that keyword (for example "in.md") should have the appropriate f1 keyword tag. The text of that file should link to articles on all the different uses of that keyword.
f1_keywords: | ||
- "refstruct" | ||
- "refstruct_CSharpKeyword" | ||
- "ref_CSharpKeyword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be removed. There's a different target for ref
. Check the file "ref.md" to see if it's got a link to this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the conflicting ref_CSharpKeyword
from ref-struct.md. The ref.md
file already has the F1 keyword and properly links to this file. (6077675)
@@ -5,6 +5,10 @@ ms.date: 04/17/2025 | |||
f1_keywords: | |||
- "extension_CSharpKeyword" | |||
- "extension" | |||
- "this_CSharpKeyword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed. The this
keyword targets "this.md". Check that file to see if it links to this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the conflicting this_CSharpKeyword
from extension.md. The this.md
file already has the F1 keyword and properly links to this file. (6077675)
@@ -5,6 +5,7 @@ ms.date: 07/20/2015 | |||
f1_keywords: | |||
- "from_CSharpKeyword" | |||
- "from" | |||
- "in_CSharpKeyword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this. The in
keyword already targets "in.md". Make sure there's a link in that file to this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the conflicting in_CSharpKeyword
from from-clause.md. The in.md
file already has the F1 keyword and properly links to this file. (6077675)
f1_keywords: | ||
- "ingenericmodifier" | ||
- "ingenericmodifier_CSharpKeyword" | ||
- "in_CSharpKeyword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about in_CSharpKeyword
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the conflicting in_CSharpKeyword
from in-generic-modifier.md. The in.md
file already has the F1 keyword and properly links to this file. (6077675)
@@ -5,6 +5,7 @@ ms.date: 07/20/2015 | |||
f1_keywords: | |||
- "join" | |||
- "join_CSharpKeyword" | |||
- "in_CSharpKeyword" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the conflicting in_CSharpKeyword
from join-clause.md. The in.md
file already has the F1 keyword and properly links to this file. (6077675)
Co-authored-by: BillWagner <[email protected]>
You're absolutely right. I've removed all the conflicting F1 keywords from the specific usage files. Now each F1 keyword has only one target file - the main keyword file (like |
Closing this as it's going in the wrong direction. |
Thanks for assigning this issue to me. I'm starting to work on it and will keep this PR's description up to date as I form a plan and make progress.
Original issue description:
Fixes #20799.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.
Internal previews