fix(cli): pass all fields to tree-sitter.json in init

(cherry picked from commit f3f7230ee3)
This commit is contained in:
Sam Estep 2024-10-30 17:09:21 -04:00 committed by Christian Clason
parent a498790a82
commit 12bc174205

View file

@ -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(|| {