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

RFC: support conditional activation #3257

Open
cdaringe opened this issue Jan 10, 2024 · 0 comments
Open

RFC: support conditional activation #3257

cdaringe opened this issue Jan 10, 2024 · 0 comments

Comments

@cdaringe
Copy link

cdaringe commented Jan 10, 2024

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

I use different formatters for js/ts in different projects, but the prettier extension activation is so wide that it formats code in other projects too, undesireably (standard, biome, etc)

Describe the solution you'd like

After activation, check for conditions that imply I want prettier formatting. Lightweight, quick checks. Race for...

  • presence of any prettier config files
  • presence in package.json

Describe alternatives you've considered

What I have to do now is globally turn off the relevant extension and reload my editor every time i open the relevant project, such that I get the desired dev experience (e.g. format on save).

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant