Skip to content

feat: handle workspace/configuration requests for config path in v2 #77

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

Merged
merged 6 commits into from
Mar 14, 2025

Conversation

siketyan
Copy link
Member

Closes #75

Added support of workspace/configuration LSP requests to provide the configuration to Biome v2.0. In Biome v2, we will drop --config-path in favour of the LSP request. For backward compatibility, we keep using --config-path for Biome v1.

@siketyan siketyan requested review from ematipico and luckydye March 13, 2025 15:57
@siketyan siketyan self-assigned this Mar 13, 2025
@siketyan siketyan marked this pull request as draft March 13, 2025 16:34
@siketyan siketyan marked this pull request as ready for review March 13, 2025 16:57
src/biome.rs Outdated
zed::npm_package_installed_version(PACKAGE_NAME)
.ok()
.flatten()
.is_none_or(|version| version.starts_with("2."))
Copy link
Member

Choose a reason for hiding this comment

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

I suggest checking v1 instead, so even future versions like V3, v4, etc. will be compatible.

It's more future proof

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it makes sense, fixed in 4054066

@siketyan siketyan requested a review from ematipico March 14, 2025 13:02
@ematipico ematipico merged commit ed51dea into main Mar 14, 2025
3 checks passed
@siketyan siketyan deleted the feat/GH-75 branch March 14, 2025 16:56
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.

Use workspace/configuration response for providing the manual configuration path
2 participants