Skip to content
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 with an empty query returns no symbols #6833

Open
WeetHet opened this issue Oct 9, 2024 · 1 comment
Open

workspace/symbol with an empty query returns no symbols #6833

WeetHet opened this issue Oct 9, 2024 · 1 comment
Labels
improvement Not a bug or a feature, but something general we can improve navigation Related to goto definition, find references, open symbol

Comments

@WeetHet
Copy link

WeetHet commented Oct 9, 2024

Describe the bug

  1. Create a scala file and hook up scala-cli: scala-cli setup-ide ..
  2. Send a workspace/symbol request to metals using an editor of your choice (I use Zed), with the following contents (in case of Zed by pressing Cmd+T)
{"jsonrpc":"2.0","id":200,"method":"workspace/symbol","params":{"query":""}}
  1. Receive:
{"jsonrpc":"2.0","id":200,"result":[]}

Expected behavior

According to the LSP specification, this request should return all symbols for the workspace (definition):

Clients may send an empty string here to request all symbols.

Operating system

macOS

Editor/Extension

Other

Version of Metals

v1.3.5

Extra context or search terms

No response

@tgodzik tgodzik added improvement Not a bug or a feature, but something general we can improve navigation Related to goto definition, find references, open symbol labels Oct 9, 2024
@tgodzik
Copy link
Contributor

tgodzik commented Oct 9, 2024

Thanks for reporting! This was done on purpose, but I think we some recent changes we can improve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Not a bug or a feature, but something general we can improve navigation Related to goto definition, find references, open symbol
Projects
None yet
Development

No branches or pull requests

2 participants