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

fix: exclude end position in findElementWithOffset - #366

Merged
tjkandala merged 1 commit into
masterfrom
tj/exclusive-range
Apr 12, 2021
Merged

tjkandala merged 1 commit into
masterfrom
tj/exclusive-range

Conversation

@tjkandala

@tjkandala tjkandala commented Apr 9, 2021 •

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Apr 9, 2021 •

Copy link
Copy Markdown

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
Copy Markdown

🎉 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

4 participants