From f3f7230ee3e6703bda2caafe26c67bbe5946eaf0 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` --- 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 092aba56..39d8e231 100644 --- a/cli/src/init.rs +++ b/cli/src/init.rs @@ -139,7 +139,7 @@ impl JsonConfigOpts { scope: self.scope, path: None, external_files: PathsJSON::Empty, - file_types: None, + file_types: Some(self.file_types), highlights: PathsJSON::Empty, injections: PathsJSON::Empty, locals: PathsJSON::Empty, @@ -155,7 +155,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(|| {