Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

fix: exclude end position in findElementWithOffset #366

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

tjkandala
Copy link
Contributor

@tjkandala tjkandala commented Apr 9, 2021

Fix error discussed in #360, introduced by #331.

Treat end position of a range as exclusive. Previously, we would erroneously highlight DOM nodes that started at hovered nodes' specified end positions.

@codecov
Copy link

codecov bot commented Apr 9, 2021

Codecov Report

Merging #366 (bd3e953) into master (15f133d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #366   +/-   ##
=======================================
  Coverage   85.86%   85.86%           
=======================================
  Files          14       14           
  Lines         651      651           
  Branches      174      174           
=======================================
  Hits          559      559           
  Misses         92       92           
Impacted Files Coverage Δ
src/token_position.ts 91.80% <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 15f133d...bd3e953. Read the comment docs.

@tjkandala tjkandala merged commit 342afb8 into master Apr 12, 2021
@sourcegraph-bot
Copy link

🎉 This PR is included in version 7.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

4 participants