-
Notifications
You must be signed in to change notification settings - Fork 415
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
Target hints: only load targets from subdir #6603
Conversation
@snowleopard I implemented the suggestion in your CR regarding directory targets. I first tried to add "a, b (directory target)" but this wasn't printing because this relies on edit distance to determine which candidates to keep. So I just added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! I left some comments.
It seems to me that we can get a more user-friendly output if treat file and directory targets separately. Do you think it could work?
This is an optimization: instead of loading all targets and filtering, we start with only the right subdirectory. Signed-off-by: Etienne Millon <[email protected]>
Signed-off-by: Etienne Millon <[email protected]>
Signed-off-by: Etienne Millon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
The main content of this PR is an optimization: instead of loading all targets and filtering, we start with only the right subdirectory.