-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(workspace) symbol picker is limited to the first 128 elements #1437
Comments
Can you specify what filetype and language server are you using? It's likely that the LSP limits the unfiltered response and returns more results if a query is provided (but we currently don't support that) |
Sure, I opened a Rust file |
I also have the same problem |
When you are facing this issue with
|
Neovim's telescope has a "dynamic" workspace symbol picker which essentially sends the helix/helix-term/src/commands/lsp.rs Lines 163 to 168 in fc666db
According to the LSP spec, an empty string should return all symbols, but since this is computationally expensive it might choose to limit the number of results. For |
clangd dev here, we also break spec by limiting to 100 results (same as code completion), happy to elaborate if it's helpful.
Not just computationally expensive on the server, but we can overwhelm clients: "all symbols" can easily be 1M+, and there are clients out there written in vimscript and such... |
How should the symbol picker be used then if the symbol search can only query out of 100 symbols? Most workspaces have more than 100 symbols |
Oh wait I understand now, helix was querying for every single symbol from the LSP and filtering via its own search algorithm. #3110 fixes this |
After #1041 it is now possible to search for symbols in a whole workspace. Problem is, there are often a lot more symbols than the default (from where) 128 displayed symbols and the list is not updated as I enter text.
Reproduction steps
helix
repositoryhelix-lsp/src/client.rs
Space+s
workspace_symbols
goes to line 769 for me.Space+Shift+s
(Space+S
)workspace_symbols
0/128
Environment
v0.5.0-331-gdbaed0b
ongit describe
~/.cache/helix/helix.log
A llittle heavy since I used
-vvv
so I uploaded a file insteadhelix.log
The text was updated successfully, but these errors were encountered: