Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Fixing the calculation to determine if a line is available for comment #2112

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

StanleyGoldman
Copy link
Contributor

Fixes #2105
Related #2080

Before adding inline annotations, wherever an inline dialog would be is somewhere a comment could be created. After adding inline annotations we had to add code to hide the add comment control if it was not a line that could be commented on. Again a 1-based vs 0-based line numbering scheme bit me.

Fixing the issue and adding more comments.

Copy link
Collaborator

@jcansdale jcansdale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I was tempted to add structs for 0-based and 1-based line numbers to prevent them from being compared without conversion. 😉

@StanleyGoldman StanleyGoldman merged commit c5ef0d8 into master Dec 6, 2018
@StanleyGoldman StanleyGoldman deleted the add-comment-missing branch December 6, 2018 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants