docs(linter/plugins): correct comment about offset to line-column conversion#20506
Merged
graphite-app[bot] merged 1 commit intomainfrom Mar 21, 2026
Conversation
This was referenced Mar 18, 2026
This was referenced Mar 18, 2026
This was referenced Mar 18, 2026
Member
Author
This was referenced Mar 18, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR corrects documentation in the location plugin to accurately describe how offsets are converted to (line, column) using the lineStartIndices table. This improves maintainability and reduces the chance of future mistakes when modifying the binary search logic.
Changes:
- Update the comment in
populateLineColumnto describe the “upper_bound” style binary search and its post-conditions. - Add clarifying inline comments that
out.lineis 1-indexed andout.columnis relative to the start of the computed line.
e2ae309 to
f3c82c6
Compare
This was referenced Mar 18, 2026
f3c82c6 to
f5c738d
Compare
33b0950 to
982be40
Compare
f5c738d to
897dc88
Compare
982be40 to
c774a9d
Compare
44e3182 to
cf6e31d
Compare
897dc88 to
bfa3661
Compare
Contributor
Merge activity
|
…version (#20506) Correct a comment. It didn't accurately describe what the code does.
bfa3661 to
f064f80
Compare
This was referenced Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Correct a comment. It didn't accurately describe what the code does.