HomePhabricator

[clangd] Make WorkspaceSymbols request work with empty queries

Authored by kadircet on Mar 2 2021, 7:43 AM.

Description

[clangd] Make WorkspaceSymbols request work with empty queries

Clangd uses codecompletion limit as the limit for workspacesymbols, so
in theory this should only be an order of magnitude slower than a
codecompletion request with empty identifier (as code completion limits
the available symbols).

This is also what LSP suggests "Clients may send an empty string here to request all symbols.".
Clangd doesn't really fulfill the "all" part of that statement, but we
never do unless user set the index query limit to zero explicitly.

Differential Revision: https://reviews.llvm.org/D97773

Details

Committed
kadircetMar 3 2021, 6:41 AM
Differential Revision
D97773: [clangd] Make WorkspaceSymbols request work with empty queries
Parents
rG15f495c0bcb2: [AVR] Fix def state of operands
Branches
Unknown
Tags
Unknown