Sort Keys
It would be useful to have the ability to auto-sort keys in .flt files.
Hey, thanks for opening an issue!
At this moment, we don’t support any linting features.
The extension is still missing some foundational pieces needed to implement what you’re suggesting.
A while back, I did a quick POC for an auto-formatter that rewrites the code from its AST.
For example, it could transform:
foo = blah {$value } bleh
into
foo = blah { $value } bleh
I’m not actively developing new features for this extension, as I’m currently focused on this new project.
That said, if you’re interested in contributing to vscode-fluent, I would be glad to assist you!
@macabeus
Thanks for the great info!
I took a look at fluent and found https://github.com/projectfluent/tree-sitter-fluent.
It might be a good idea to use this as a reference when creating a formatter.