Skip to content

Commit 2280449

Browse files
committed
[FIX] Function should not be autocompleted with internal symbols
1 parent c7ae124 commit 2280449

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/core/symbols/symbol.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,6 +2460,9 @@ impl Symbol {
24602460
}
24612461
}
24622462
},
2463+
SymType::FUNCTION => {
2464+
// A function does not expose its symbols
2465+
},
24632466
// if not class just add it to result
24642467
_ => symbol.borrow().all_symbols().for_each(|s|
24652468
if !(only_fields && !s.borrow().is_field(session)) {append_result(s, None)}

0 commit comments

Comments
 (0)