Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default 'roots' field of language config #8803

Merged
merged 2 commits into from Nov 14, 2023
Merged

Conversation

the-mikedavis
Copy link
Member

Previously roots needed to be specified by every language and [] was used as an explicit default. Root files don't make sense for every language (for example TOML) so I think we should allow languages to not explicitly mention the key and have the [] default automatically.

@the-mikedavis the-mikedavis added E-easy Call for participation: Experience needed to fix: Easy / not much A-core Area: Helix core improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Nov 13, 2023
Previously roots needed to be specified by every language and `[]` was
used as an explicit default. Root files don't make sense for every
language (for example TOML) so I think we should allow languages to
not explicitly mention the key and have the `[]` default automatically.
pascalkuthe
pascalkuthe previously approved these changes Nov 13, 2023
@archseer
Copy link
Member

Should we also remove the empty key everywhere to shrink the file a bit?

@archseer archseer merged commit 69a0df9 into master Nov 14, 2023
6 checks passed
@archseer archseer deleted the lang-config-default-roots branch November 14, 2023 02:56
@the-mikedavis the-mikedavis mentioned this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Helix core improvements E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants