Can't leave a comment or draft comment on moved files with no changes
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary We recently shipped the ability to expand the content of a moved file with no changes. However, leaving a comment or draft comment is failing. ![renamed-file](/uploads/951859e736f905acd19a77f096f9b3fd/renamed-file.gif) ### Steps to reproduce 1. Open an MR with a renamed file, with no changes 1. Expand the content of that file in the Diff 1. Try to leave a comment 1. Try to leave a batch comment ### Example Project * https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/58559/diffs#4e6a84522e487941a8fc84786218eae5f6910fe7 * https://gitlab.com/andr3/meet.andr3.net/-/merge_requests/24/diffs#d1d58951060df2fc4a79aea1c1d4df0177a1831c ## Proposal On moved files that do not have any changes we should disable the comment button, with a tooltip saying: `Commenting on moved files is currently not supported` This will immediately relieve any concerns about errors or lost comments. Future feature enhancements to enable commenting are in https://gitlab.com/gitlab-org/gitlab/-/issues/371752
issue