Skip to content
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

fix: make character positions for newlines the same as vscode #112

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

DylanPiercey
Copy link
Contributor

@DylanPiercey DylanPiercey commented Jun 20, 2022

Switch character position offsets for newlines to be to similar to vscode. Previously the newline was counted as the first character of the line, now it is the last character of the previous line.

@codecov
Copy link

codecov bot commented Jun 20, 2022

Codecov Report

Merging #112 (377ed88) into main (e6317f3) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #112   +/-   ##
=======================================
  Coverage   93.26%   93.26%           
=======================================
  Files          26       26           
  Lines         713      713           
  Branches      244      244           
=======================================
  Hits          665      665           
  Misses         32       32           
  Partials       16       16           
Impacted Files Coverage Δ
src/util/util.ts 85.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6317f3...377ed88. Read the comment docs.

@DylanPiercey DylanPiercey merged commit 2ad4628 into main Jun 20, 2022
@DylanPiercey DylanPiercey deleted the fix-character-positions branch June 20, 2022 20:57
@github-actions github-actions bot mentioned this pull request Jun 20, 2022
@changeset-bot
Copy link

changeset-bot bot commented Jun 20, 2022

🦋 Changeset detected

Latest commit: 377ed88

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant