Skip to content

fix rangeMapFindIn containment filter#885

Open
cuiweixie wants to merge 1 commit intokoka-lang:devfrom
cuiweixie:fix/range-map-find-in-filter
Open

fix rangeMapFindIn containment filter#885
cuiweixie wants to merge 1 commit intokoka-lang:devfrom
cuiweixie:fix/range-map-find-in-filter

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

In rangeMapFindIn, the filter used ||, so a range satisfied the predicate if either edge was inside the query span, which matches far too many entries. Use && so only ranges fully contained in the query range are kept (consistent with needing both rangeStart >= start and rangeEnd <= end).

Entries should lie fully inside the query range; require both bounds
instead of either.
@daanx
Copy link
Copy Markdown
Member

daanx commented Apr 7, 2026

Thanks for the PR. Can you give an example where I can see the difference? Is this onHover inside vs code?

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.

2 participants