-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Comment widget doesn't work with inline diffs on deleted lines #164729
Comments
Where are you opening the file from? Do you have the pull request checked out? If you see this with a pull request in a public repo, can you share a link to the pull request? |
Thank you for taking a look at this issue. I honestly don't understand why more info is needed. I'm wondering whether you faced zero issues on your part? I don't know. Regardless, I created a test project for this: https://github.com/TheQuantumPhysicist/VSCodePRBug And there's a PR where I removed a line. I checked out the PR in VSCode:
Basically, anything you try to do with deleted lines is a mess. Trying to add comments on them in VSCode doesn't work. Reading comments from them that were added on github doesn't work. All the best. |
I added you to that repo. |
Correct, I faced no issues leaving and viewing comments on deleted lines. Thank you for the example repo, I'm looking into it. |
Btw, the same issue also exists for a deleted file. So, a comment on a deleted file also doesn't show up in VSCode. This just happened with me today. |
Thank you for all the details! With your screen shot I can see what the problem is. The comments widget doesn't work at all on deleted lines with the inline diff editor. Setting the following setting will get this working for you: This is a nasty bug in VS Code, which I plan to fix in November. |
I've completely disabled commenting for the left hand side of the diff editor when |
OMG... why would you do that? Now I can't review anymore! I don't use side-by-side ever... now I'm wishing I never reported this bug! |
Just to be clear, with all due respect. This isn't a solution, and I would appreciate you reverting whatever you did. Believe me, no one appreciates this. So previously I could comment on non-deleted lines, now I can't at all, unless I split the screen in a way that isn't convenient for my setup. I'm sorry but if I'm getting this right, then the least I can call this is crazy and if someone in my team does that they would be in trouble (no offense, I really thank you for the great work you're doing, but this is crossing the line. Apologies for being harsh, but I'm shocked. |
@TheQuantumPhysicist commenting is only disabled on the left hand side of the diff editor when using inline diffs. You can still comment on the right side. |
Perhaps there's a misunderstanding. As long as I don't have to use split screen diff side by side view to be able to comment, then all good. Thanks again. |
Verified that you can no longer add comments for deleted lines in the inline diff view. But found #167733 |
I only found an issue about deleted files microsoft/vscode-pull-request-github#3421. Can't say this is unrelated, can't say this is the same.
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: