-
Notifications
You must be signed in to change notification settings - Fork 313
Add guidance for searching multi-line function call chains in Copilot instructions #3138
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 guidance for searching multi-line function call chains in Copilot instructions #3138
Conversation
Co-authored-by: heaths <[email protected]>
Co-authored-by: heaths <[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.
Worth a try. I thought the individual instructions from before were better.
@copilot add "rustfmt" to |
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.
Pull Request Overview
This PR adds guidance to the Copilot instructions to help with searching multi-line function call chains in Rust code. The issue addressed is that Copilot was searching for method chains as single-line patterns when rustfmt typically formats them across multiple lines.
- Added a bullet point to remind about rustfmt's multi-line formatting of method chains
- Suggests using multi-line search patterns with
rg -U
flag or searching for individual method names - Provides practical guidance to improve code search accuracy
Co-authored-by: heaths <[email protected]>
Added "rustfmt" to |
/check-enforcer evaluate |
Summary
Updated the Copilot instructions with concise guidance about searching for multi-line function call chains in Rust code, and added "rustfmt" to the cspell.json dictionary.
Changes:
rg
with-U
flag).vscode/cspell.json
word list in alphabetical orderThis addresses the issue while being much more token-efficient.
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.