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

Allow null langword fixer at the end of an XML tag #76552

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

RenderMichael
Copy link
Contributor

Fixes #76548

This allows users to more naturally type null and follow it up with Ctrl+. to immediately convert to <see langword="null"/>

@RenderMichael RenderMichael requested a review from a team as a code owner December 22, 2024 06:19
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 22, 2024
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Dec 22, 2024
@RenderMichael
Copy link
Contributor Author

RenderMichael commented Jan 8, 2025

@CyrusNajmabadi ping regarding this small and tidy PR. I wasn't sure who else to ping, since you commented on the original issue, but this is ready for review.

""",

"""
/// <summary>Testing keyword <see langword="null"/></summary>
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi Dec 22, 2024

Choose a reason for hiding this comment

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

Can you add a test where the keyword is the first word in the summary and the caret is at the start of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, that scenario did regress with this change. I pushed a fix and tests.

@CyrusNajmabadi CyrusNajmabadi merged commit 951bb50 into dotnet:main Jan 9, 2025
25 checks passed
@CyrusNajmabadi
Copy link
Member

Thanks very much for the contribution!

@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jan 9, 2025
@RenderMichael RenderMichael deleted the null-fixer branch January 9, 2025 05:12
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 VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Langword null fixer breaks when null is at the end of the strinrg
2 participants