Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support target type completion tags in object creation contexts #76786

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

ToddGrun
Copy link
Contributor

This allows "new |" completion to populate the target type filter with types that derive from the specified target type.

Fixes #45109

This allows "new |" completion to populate the target type filter with types that derive from the specified target type.

Fixes dotnet#45109
@ToddGrun ToddGrun requested a review from a team as a code owner January 16, 2025 22:54
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jan 16, 2025
@ToddGrun ToddGrun requested a review from genlu January 16, 2025 22:54
Bit of cleanup in the completion provider
ShowTargetTypedCompletionFilter = true;

var markup =
$$"""
Copy link
Member

Choose a reason for hiding this comment

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

Can't use foo because of policheck. Use Goo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed, weird though as other tests in this file use that name.

# for free to join this conversation on GitHub. Already have an account? # 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.

Completion does not filter list for new object based on generic argument type constraints
3 participants