This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't return symbols with empty names
Although LSP does not define what constitutes a valid symbol name, VS Code's client implementation explicitly prohibits symbols with empty names. Currently, RLS returns such symbols in many cases (for example, the root module of a binary crate). These symbols not only fail to parse in VS Code, but in fact cause it to throw an exception that prevents the symbol list from being populated *at all*. To fix this, filter out symbols with empty names before returning them to the client.
- Loading branch information