From 82a8e2a357ba3b6cff3035c53ba81ac4bf9c3d11 Mon Sep 17 00:00:00 2001 From: ChosenName <69129796+ChosenName@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:30:36 -0600 Subject: [PATCH] Fix typos --- crates/rust-analyzer/src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index df8cba0ae3..477e8188b8 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -2634,13 +2634,13 @@ fn schema(fields: &[SchemaField]) -> serde_json::Value { .iter() .map(|(field, ty, doc, default)| { let name = field.replace('_', "."); - let catagory = name.find('.').map(|end| { + let category = name.find('.').map(|end| { String::from(&name[..end]) }).unwrap_or("general".into()); let name = format!("rust-analyzer.{name}"); let props = field_props(field, ty, doc, default); serde_json::json!({ - "title": catagory, + "title": category, "properties": { name: props }