From 12bc174205778a1140bf24102aca35a309ead6e6 Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Wed, 30 Oct 2024 17:09:21 -0400 Subject: [PATCH] fix(cli): pass all fields to `tree-sitter.json` in `init` (cherry picked from commit f3f7230ee3e6703bda2caafe26c67bbe5946eaf0) --- cli/src/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/init.rs b/cli/src/init.rs index fc661aab..c6a95d49 100644 --- a/cli/src/init.rs +++ b/cli/src/init.rs @@ -138,7 +138,7 @@ impl JsonConfigOpts { scope: self.scope, path: PathBuf::from("."), external_files: PathsJSON::Empty, - file_types: None, + file_types: Some(self.file_types), highlights: PathsJSON::Empty, injections: PathsJSON::Empty, locals: PathsJSON::Empty, @@ -154,7 +154,7 @@ impl JsonConfigOpts { authors: Some(vec![Author { name: self.author, email: self.email, - url: None, + url: self.url.map(|url| url.to_string()), }]), links: Some(Links { repository: self.repository.unwrap_or_else(|| {