Skip to content

Fix completions after attribute list in lambdas#81961

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
DoctorKrolic:lambda-paremeter-type-after-attribute
Jan 11, 2026
Merged

Fix completions after attribute list in lambdas#81961
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
DoctorKrolic:lambda-paremeter-type-after-attribute

Conversation

@DoctorKrolic
Copy link
Contributor

Fixes: #73121

@DoctorKrolic DoctorKrolic requested a review from a team as a code owner January 11, 2026 12:31
@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 Jan 11, 2026
Public Async Function TestAnonymousMethodParameterAfterAttribute(showCompletionInArgumentLists As Boolean) As Task
Using state = TestStateFactory.CreateCSharpTestState(
<Document>
f(delegate ([A] $$ name) { });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Parameter attributes are not allowed in delegate anonymous method syntax, but if user completes type name they will get nice "Attribute is not allowed here" error, so lets allow completions in this scenario as well

@CyrusNajmabadi CyrusNajmabadi merged commit 962302e into dotnet:main Jan 11, 2026
27 checks passed
@CyrusNajmabadi
Copy link
Contributor

Thanks!

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. VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No completion for lambda parameter type if attribute is present

3 participants