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: set flags based on biome-version to add backwards compatibility #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bc-m
Copy link
Contributor

@bc-m bc-m commented Sep 24, 2024

Since Biome v1.8.0 the cli arguments have changed from --apply and --apply-unsafe to --write and --unsafe.

In #85 we updated the cli flags, but dropped backwards compatibility.

This PR checks the running biome version to add backwards compatibility to biome prior to 1.8.0. This PR also sets --skip-errors to skip files containing syntax errors instead of throw an error.

Fixes #89 #90 #95

@ematipico
Copy link
Member

I must admit that this is an awkward setting, probably because at that time the LSP didn't support the majority of the endpoints. This check shouldn't be needed, however I know nothing about intellij extension developments, so I hope this will be removed in the future

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.

Intellij plugin v1.4 crashing
2 participants