You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create suggestions from working tree changes #5256
Wondering what we think of this as a feature. Currently, making a suggestion on a PR is a multi-step process. You highlight the line numbers you want to suggest, click the left "+" on the bottom of the lines, then make your edits without syntax highlighting or Intellisense support.
It would be cool if instead, we could make changes directly to the working tree (creating unstaged changes), and then have a way to "Add suggestions from working tree diff" (or something similar), where it goes through each of the diffs you've made and allows you to transform it into a suggestion with a comment.
This would particularly be helpful for making suggestions on larger PRs, and for making them much faster (just make the change and import rather than click-click-click-type).
Thanks again for creating a great tool :)
Reacted by Amir Hossein Karimi, Alex J Best, Derviloper, Robert Sargent, Martin Mareš, Marcus Fernandez, Nathaniel Palmer, Ronnie Dutta, AmirSoroush, Martin Bernstorff and 17 more
This works in a limited sense already where if you add a suggestion to a line that already has working copy changes it will use the working copy change for the initial suggestion, however when I've done this the resulting diff for the suggestion isn't right. Instead of using the PR change as the "base" for the diff it appears to use the target branch instead which makes the content of the suggestion difficult to distinguish.
Activity
alexr00 commentedon Sep 20, 2023
This is a reasonable request, and would really add value over making a suggestion from github.com.
diminutivesloop commentedon Feb 24, 2024
This works in a limited sense already where if you add a suggestion to a line that already has working copy changes it will use the working copy change for the initial suggestion, however when I've done this the resulting diff for the suggestion isn't right. Instead of using the PR change as the "base" for the diff it appears to use the target branch instead which makes the content of the suggestion difficult to distinguish.
Create suggestions from working tree changes
Create suggestions from working tree changes (microsoft#6153)