Skip to content

[symbols] do not auto-limit the result of the workspace symbol request #915

Closed

Description

@martinlippert

At the moment, we limit the number of workspace symbols that the language server returns to the client to 50 symbols max. This can cause issues on the client side, since the client has no clue about this limitation. If the client, for example, filters the workspace symbols to identify specific ones, the client can't be sure that is got all the symbols, since "the interesting ones" might have been randomly cut off by the language server when returning only 50 symbols max.

We should not limit the max number of workspaces symbols that the language server returns, but keep that logic to the client. The client decides whether it wants to get all the symbols (and submits the request without or with an empty search query param) or just a limited set of symbols (and then submits a query param).

If we need a mechanism to limit the max number of symbols in the result (for whatever reason), we can introduce a search query param to submit that information to the language server, like we do that to return only symbols belonging to a certain project (or URI prefix, for me precise). But that is not specified in the LSP.

Activity

  1. added
    for: eclipse
    for: vscode
    on Dec 5, 2022
  2. added this to the 4.17.1.RELEASE milestone on Dec 5, 2022
  3. self-assigned this
    on Dec 5, 2022
  4. added a commit that references this issue on Jan 9, 2023
  5. added a commit that references this issue on Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: spring index & symbolstype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions