Skip to content

find_usages can return fewer than limit results #74

Description

@GoodbyePlanet

Impact: Medium (correctness / UX)

`server/tools/search.py:135-144` requests `limit` fused results, then filters out the symbol's own definition, then slices `[:limit]` again. When the definition is a top hit, the caller receives `limit-1` (or fewer) results even when more matching usages exist.

Recommended change

Over-fetch (e.g. `limit + a few`) before filtering out the definition, then slice to `limit`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions