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

Commit 6844569

Browse files
authored
Merge pull request #1193 from tchebb/no-empty-symbols
Don't return symbols with empty names
2 parents afca67e + 1210105 commit 6844569

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/actions/requests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ impl RequestAction for Symbols {
112112

113113
Ok(symbols
114114
.into_iter()
115+
.filter(|s| !s.name.is_empty()) // HACK: VS Code chokes on empty names
115116
.filter(|s| {
116117
let range = ls_util::rls_to_range(s.span.range);
117118
range.start != range.end

0 commit comments

Comments
 (0)