Skip to content

Conversation

@isoos
Copy link
Collaborator

@isoos isoos commented Sep 27, 2024

Fixes #7938
image

@isoos isoos requested review from jonasfj and sigurdm September 27, 2024 21:54
final singular = matches.length == 1;
final namePluralized = singular ? 'name' : 'names';
return d.p(children: [
d.b(text: 'Matching package $namePluralized: '),
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we detect if the match is exact, and in that case write 'Exact package name match:'

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated.

@sigurdm
Copy link
Contributor

sigurdm commented Sep 30, 2024

I'd like the message to be more specific when applicable. But I really like this!

@isoos isoos merged commit 36f5179 into dart-lang:master Sep 30, 2024
32 checks passed
@isoos isoos deleted the search-name branch September 30, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An exact match with the package name should be shown first

3 participants