This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Commit 1210105
committed
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.1 parent a0e70f1 commit 1210105
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments