Stillat / vscode-antlers-language-server

Provides rich language features for Statamic's Antlers templating language, including code completions, syntax highlighting, and more.
https://antlers.dev
MIT License
36 stars 3 forks source link

Support for Browser-Based Prettier #96

Open petemolinero opened 1 month ago

petemolinero commented 1 month ago

Which Antlers Toolbox products are you requesting a feature for?

Is your feature request related to a problem? Please describe. Nope!

Describe the solution you'd like I can currently use the browser-based version of prettier to format antlers code inside Statamic's Codemirror editor. The antlers plugin, however, does not seem to work with it. I'm guessing that's because it relies on node itself somehow. If it's doable, it would be great if it did (but understandable if not :).

Describe alternatives you've considered I've tried the angular parser plugin, which kind of works, but it has some drawbacks. (1) it doesn't work great with prettier-ignore, (2) it completely breaks if I escape antlers tags (for use with runtime vue), like @{{, and (3) it doesn't do any indentation for antlers tags or control structures.

Additional context None

JohnathonKoster commented 1 month ago

Thanks for the suggestion. I think it should be possible, would be a heavy lift. I'll think on it!