Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1193 from tchebb/no-empty-symbols
Browse files Browse the repository at this point in the history
Don't return symbols with empty names
  • Loading branch information
Xanewok authored Dec 17, 2018
2 parents afca67e + 1210105 commit 6844569
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/actions/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ impl RequestAction for Symbols {

Ok(symbols
.into_iter()
.filter(|s| !s.name.is_empty()) // HACK: VS Code chokes on empty names
.filter(|s| {
let range = ls_util::rls_to_range(s.span.range);
range.start != range.end
Expand Down

0 comments on commit 6844569

Please sign in to comment.