Skip to content

Factor out Formatters and Diagnostics into Presets #1576

Description

@snoweuph

I have verified that this feature request has not been made before

  • I have checked the issues tab, and did not find a similar feature request. I understand that my issue will be closed if it is a duplicate.

Feature Type

Other

Feature description

We did factor out the LSPs into the lsp.presets.

I suggest, to do the same for Formatters and Extra Diagnostic Providers, to allow for more flexible Language Modules.

Alternatives

No response

Additional Context

We currently have multiple formatters like biome and prettier across multiple modules, partially duplicating config, partially only having some, but not all sensible options in all theoretical supported modules.

This would possibly need to either behave a bit different from the structure, due to things like prettier and eslint plugins, which you only want to enable for specific filetypes.
Though one option would be to provide multiple presets of the same tool like prettier, prettier-svelte, prettier-typescript, prettier-angular.

Metadata

Metadata

Labels

TBDMore discussion and research is in orderenhancementNew feature or requesttopic: modules

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions