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

Commit e3882c0

Browse files
committed
Use consistent completion item kinds for structs and unions
1 parent b97f025 commit e3882c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rls/src/lsp_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pub fn source_kind_from_def_kind(k: DefKind) -> SymbolKind {
160160
pub fn completion_kind_from_match_type(m: racer::MatchType) -> CompletionItemKind {
161161
match m {
162162
racer::MatchType::Crate | racer::MatchType::Module => CompletionItemKind::Module,
163-
racer::MatchType::Struct(_) => CompletionItemKind::Class,
163+
racer::MatchType::Struct(_) => CompletionItemKind::Struct,
164164
racer::MatchType::Union(_) => CompletionItemKind::Struct,
165165
racer::MatchType::Enum(_) => CompletionItemKind::Enum,
166166
racer::MatchType::StructField | racer::MatchType::EnumVariant(_) => {

0 commit comments

Comments
 (0)