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 }}
This repository has been archived by the owner on May 19, 2024. It is now read-only.
Describe the bug
When using the Commenter's WriteMultiLineComment or WriteLineComment functions with a single-line edit, comments are returning CommentNotValidError errors because they are incorrectly determined to be outside of a hunk.
To Reproduce
Steps to reproduce the behavior:
Make a single line edit and use Commenter.WriteMultiLineComment or Commenter.WriteLineComment for that line
CommentNotValidError is returned
Expected behavior
If a line is in a hunk, the comment shouldn't be invalid.
The text was updated successfully, but these errors were encountered:
@owenrumney I setup a potential fix that's been working for my case #17 . Please let me know if any extra details/help is needed 😄
andrew-myer
changed the title
hunkInfo.isLineInHunk doesn't correctly check if line is in hunk for WriteMultiLineCommenthunkInfo.isLineInHunk doesn't correctly check if line is in hunk for WriteMultiLineCommentApr 10, 2024
andrew-myer
changed the title
hunkInfo.isLineInHunk doesn't correctly check if line is in hunk for WriteMultiLineCommenthunkInfo.isLineInHunk doesn't correctly check if line is in hunk for when creating comments
Apr 10, 2024
andrew-myer
changed the title
hunkInfo.isLineInHunk doesn't correctly check if line is in hunk for when creating commentshunkInfo.isLineInHunk doesn't correctly check if line is in hunk for when creating line comments
Apr 10, 2024
andrew-myer
changed the title
hunkInfo.isLineInHunk doesn't correctly check if line is in hunk for when creating line comments
Incorrectly checking if line is in hunk when creating line comments
Apr 10, 2024
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When using the Commenter's
WriteMultiLineComment
orWriteLineComment
functions with a single-line edit, comments are returningCommentNotValidError
errors because they are incorrectly determined to be outside of a hunk.To Reproduce
Steps to reproduce the behavior:
Commenter.WriteMultiLineComment
orCommenter.WriteLineComment
for that lineExpected behavior
If a line is in a hunk, the comment shouldn't be invalid.
The text was updated successfully, but these errors were encountered: