CoPilot consistently removing code when generating method summaries on void methods. #164635
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Visual Studio
Body
I've been using the new Agent mode with both Sonnet 3.7 and GPT 4.1. With both models, method summaries will generate fine as long as you are only generating summaries for methods with a return value.
Any attempt to generate a summary for a void method causes all void methods to be removed, including if they get picked up when asking to have all public methods summarized.
This happens even when directing the model not to remove any code, and when telling it that the output should have more lines than the input (in one case it told me the output had more lines when it had many fewer).
Has anyone else run into this? If so, have you found a way to get it to generate the summaries?
Beta Was this translation helpful? Give feedback.
All reactions