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

This commit is contained in:
Sam Estep 2024-10-30 17:09:21 -04:00 committed by GitHub
parent 31af4294a7
commit f3f7230ee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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