-
Notifications
You must be signed in to change notification settings - Fork 888
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
Add config option generated_marker_line_search_limit
#5993
Add config option generated_marker_line_search_limit
#5993
Conversation
generated_file_header_size
@IVIURRAY thanks for taking the time to work on this and make those updates. As Caleb mentioned in #5659 (comment), he'd like to use a more descriptive name for this option. Do you have any ideas for a succinct and clear name that better convey the intent of this option? One idea I had was calling it |
I'm not a fan of I used chatGPT (and a few in myself) to generate us some ideas...my favourites being:
|
Thanks for picking this up! |
@IVIURRAY Just want to make sure we're on the same page. Yes this option will literally configure N so that we can consider the first N lines, but we're doing so in order to search for the Thanks for the list. I'm sure that will help us come up with the right name for this option. |
Oh I see, yes, you're right. It is less of a prefix and more a range. Find the I'll wait to hear from you on what you decide 😄 |
Caleb echoed my thought process when we had our team meeting earlier this week. Here's a link to his comment. Ultimately the name needs to reflect that we're searching for the |
Thanks for the links to the conversation. This has help me understand the context and change in more depth. Here are a few more suggestions given the context:
===== ATTACHING DOCS FROM MR FOR QUICK REFERENCE BELOW =====
|
|
|
…nes to look at when checking for @generated
afc6e58
to
1d7122b
Compare
generated_file_header_size
generated_marker_line_search_limit
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.
A few more changes I'd like to see before moving forward.
change config name to generated_marker_line_search_limit update docs fix formatting use config variable add 0 limit docs adding zero limit search
b19a6ea
to
1ca738e
Compare
i like the new |
@ytmimi let me know if you want more changes as I'm considering this MR as done now 🙂 |
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.
@IVIURRAY thank you for driving this one to completion 😁
Fixes #5658 ...and a follow on of the work in #5659 by @captbaritone which has not been updated in a while.
FYI @ytmimi - I noticed your comments on the previous PR and address them in this PR. Mainly around the docs changes and adding more tests.
p.s. - learning Rust so apologies for any basic errors here.