Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: association option don't overwrite plugin supports #842

Closed
wants to merge 1 commit into from

Conversation

zhylmzr
Copy link

@zhylmzr zhylmzr commented Apr 9, 2024

fixed: #841

@CLAassistant
Copy link

CLAassistant commented Apr 9, 2024

CLA assistant check
All committers have signed the CLA.

file_exts.extend(&plugin.file_matching.file_extensions);
}
file_names.extend(&plugin.file_matching.file_names);
file_exts.extend(&plugin.file_matching.file_extensions);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What extension do you need for the prettier plugin that it currently doesn't support? I'm not sure about this change because it will certainly break someone.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tencent's miniprogram has a .wxml extension file, which is similar to HTML. In Prettier, i can configure its parser through overrides. prettier/prettier#9081 (comment)

This change could indeed have unexpected impacts on existing configurations. A better approach would be to modify the Prettier plugin to support returning the configured *.parser association.

Currently, I support it by manually configuring all the files that need to be formatted using Prettier, so I will close this.

@zhylmzr zhylmzr closed this Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

associations do not overwrite file extensions supported by the plugin.
3 participants