Skip to content

Commit 65781a1

Browse files
committed
Make it easier to find operators
1 parent 322a0cc commit 65781a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

vhdl_ls/src/vhdl_server.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,13 +433,14 @@ impl VHDLServer {
433433
.project
434434
.public_symbols()
435435
.filter(|ent| match ent.designator() {
436-
Designator::Identifier(_)
437-
| Designator::OperatorSymbol(_)
438-
| Designator::Character(_) => ent
436+
Designator::Identifier(_) | Designator::Character(_) => ent
439437
.designator()
440438
.to_string()
441439
.to_ascii_lowercase()
442440
.starts_with(&query),
441+
Designator::OperatorSymbol(op) => {
442+
op.to_string().to_ascii_lowercase().starts_with(&query)
443+
}
443444
Designator::Anonymous(_) => false,
444445
})
445446
.take(trunc_limit)

0 commit comments

Comments
 (0)