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

Formatting removes critical Antlers Components syntax #82

Closed godismyjudge95 closed 7 months ago

godismyjudge95 commented 7 months ago

Describe the bug Formatting the document removes a critical portion of the Antlers Components syntax: https://statamic.com/addons/stillat/antlers-components

Impacted Products Which Antlers Toolbox products does this bug apply to?

Versions and Other Plugins/Extensions prettier-plugin-antlers - 2.0.1

To Reproduce Paste in the template below and format:

{{ attributes.class(['border']) }}

It will output:

{{ class(['border']) }}

Which is no longer accomplishes what the original code does.

Expected behavior It formats the code but doesn't remove critical portions of it.

JohnathonKoster commented 7 months ago

I cannot reproduce this in version 2.0.1 (this issue existed in a previous version, and was resolved with https://github.com/Stillat/vscode-antlers-language-server/commit/c0b2921fda59d5fb455203572e0768f9a6db239d).

Please verify that you are running 2.0.1, and if so, feel free to update the information with all necessary steps to reproduce.

godismyjudge95 commented 7 months ago

I swear I checked the version before I ran format and submitted this bug report 😂

It is working for me on 2.0.1 So sorry for the false alarm 😅