diff --git a/compiler/crates/relay-lsp/src/completion/mod.rs b/compiler/crates/relay-lsp/src/completion/mod.rs index e8237b0c02684..c4cdc76971c85 100644 --- a/compiler/crates/relay-lsp/src/completion/mod.rs +++ b/compiler/crates/relay-lsp/src/completion/mod.rs @@ -884,13 +884,10 @@ fn resolve_completion_items_from_fields( let kind = match field.type_.inner() { Type::Enum(_) => Some(CompletionItemKind::ENUM), - Type::Interface(_) => Some(CompletionItemKind::INTERFACE), // There is no Kind for union, so we'll use interface - Type::Union(_) => Some(CompletionItemKind::INTERFACE), - Type::Object(_) => Some(CompletionItemKind::STRUCT), - Type::InputObject(_) => Some(CompletionItemKind::STRUCT), - type_ if schema.is_string(type_) => Some(CompletionItemKind::TEXT), - _ => Some(CompletionItemKind::VALUE), + Type::Interface(_) | Type::Union(_) => Some(CompletionItemKind::INTERFACE), + Type::Object(_) | Type::InputObject(_) => Some(CompletionItemKind::STRUCT), + Type::Scalar(_) => Some(CompletionItemKind::FIELD), }; CompletionItem {