Skip to content

Review/Comment Suggestions are offset by one line if you make local changes first #6495

@gabeseltzer

Description

@gabeseltzer
  • Extension version: v0.100.3 and v0.101.2024111911
  • VSCode Version: 1.95.3
  • OS: Windows
  • Repository Clone Configuration: single repository
  • Github Product Github.com

Steps to Reproduce:

See video:

Carnac_9EC2yeeg1G.mp4
  1. Create a simple repo
  2. (open vscode with temporary profile, so no conflicting extensions)
  3. (log in to github, all that jazz)
  4. Create a branch + PR for your simple repo (here's mine from the video: a change to put in a pr gabeseltzer/tv-mode#1)
  5. Refresh the PR viewer so that it sees the open PR
  6. Make a change to a line that was modified in the PR (or a line nearby)
  7. Save the file (optional, I did it in the video, but I have tested and it isn't necessary)
  8. Press the + icon in the gutter to create a comment
  9. Press "Make a Suggestion" (you can add additional comments, it doesn't matter)
  10. Confirm the suggestion with either "Start Review" or "Add Comment" (Also works if you already have a review open)
  11. Open Github and refresh the PR, and you'll see the suggestion is on the wrong line, it's one line down!
  12. (not in video) If you close and re-open VSCode, the comment will show in the line below the one you added it to, just like the Github website.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions