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

Can't find the antlersFormatWithPrettierFirstIfAvailable on the Settings UI #39

Closed lepaliscot closed 2 years ago

lepaliscot commented 2 years ago

Describe the bug I'm using Prettier VS Code Extension as default formatter with the Tailwindcss Prettier Plugin and also have Antlers Toolbox for VS Code Formatter installed

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

Versions and Other Plugins/Extensions Prettier VS Extension 9.5.0 Prettier Plugin Tailwindcss plugin ^0.1.13 Prettier Plugin ^2.7.1

To Reproduce

Expected behavior I want to format my antlers templates with the Antlers Formatter and then with Prettier

Additional context Add any other context about the problem here.

JohnathonKoster commented 2 years ago

The antlersFormatWithPrettierFirstIfAvailable has been deprecated, and is no longer available in the newest versions of the VS Code extension. This setting was used to format with Prettier separately and then use the Antlers formatter, which caused a lot of bugs. Just using the Prettier plugin and configuring it should be enough (but will need to tell VS Code to use Prettier instead of the Antlers formatter)

To format with Prettier on the newest versions, you will need to install and configure the Antlers Prettier plugin separately: https://www.npmjs.com/package/prettier-plugin-antlers

lepaliscot commented 2 years ago

Hi John, thanks for your help. C.