Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Update server.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Sep 29, 2022
1 parent 91af9f3 commit bf0b281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ impl Server {
let mut item = CompletionItem::new_simple(name.to_string(), vi.t.to_string());
item.kind = match &vi.t {
Type::Subr(_) => Some(CompletionItemKind::FUNCTION),
Type::Module => Some(CompletionItemKind::MODULE),
Type::Class | Type::Trait => Some(CompletionItemKind::CLASS),
t if &t.name()[..] == "Module" || &t.name()[..] == "GenericModule" => Some(CompletionItemKind::MODULE),
_ if vi.muty.is_const() => Some(CompletionItemKind::CONSTANT),
_ => Some(CompletionItemKind::VARIABLE),
};
Expand Down

0 comments on commit bf0b281

Please sign in to comment.