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

Fix completion lists in primary constructor parameter lists #75266

Merged

Conversation

CyrusNajmabadi
Copy link
Member

Fixes #73120

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner September 26, 2024 19:41
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 26, 2024
Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -1095,10 +1096,10 @@ token.Parent is ParameterListSyntax parameterList &&
if (token.IsKind(SyntaxKind.CloseBracketToken) &&
token.Parent.IsKind(SyntaxKind.AttributeList) &&
token.Parent.Parent is ParameterSyntax parameter2 &&
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
token.Parent.Parent is ParameterSyntax parameter2 &&
token.Parent.Parent is ParameterSyntax parameter3 &&

@@ -1095,10 +1096,10 @@ token.Parent is ParameterListSyntax parameterList &&
if (token.IsKind(SyntaxKind.CloseBracketToken) &&
token.Parent.IsKind(SyntaxKind.AttributeList) &&
token.Parent.Parent is ParameterSyntax parameter2 &&
parameter2.Parent is ParameterListSyntax parameterList2 &&
parameterList2.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators))
parameter2.Parent is ParameterListSyntax parameterList3 &&
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
parameter2.Parent is ParameterListSyntax parameterList3 &&
parameter3.Parent is ParameterListSyntax parameterList3 &&

{
parameterIndex = parameterList2.Parameters.IndexOf(parameter2);
parameterIndex = parameterList3.Parameters.IndexOf(parameter2);
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
parameterIndex = parameterList3.Parameters.IndexOf(parameter2);
parameterIndex = parameterList3.Parameters.IndexOf(parameter3);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE 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.

No completion for constructor parameter type when attribute is present
2 participants