Skip to content

[nvim] lsp workspace symbols incomplete on large projects #2883

@TRPB

Description

@TRPB

This is further to: #2844

I'm not sure where the problem is but I've tried using both snacks.nvim and telescope and described the issue here thinking it was a snacks.nvim issue: folke/snacks.nvim#1060

The problem is, on projects with > 200 files (or higher if the limit is increased) lsp workspace symbols is incomplete.

This happens in both Telescope and Snacks. I'd imagine how it should work is the picker sends the request to the LSP and the LSP returns the results. It seems like something is going wrong during that process.

If It type into either snacks or telescope:

SomeNamespace

I get a tiny subset of results. There are around 600 classes in the project with that namespace yet I get fewer than 10 results.

According to the author of snacks.nvim, that list is coming directly from the LSP. Is there a way (or an alternative picker) that works with a large number of classes in the project?

How can I debug this further? Either the picker or phpactor is not working as intended

If I increase the limit as described in #2844 it increases the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions