Conversation
🦋 Changeset detectedLatest commit: 631e02c The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
8043bab to
631e02c
Compare
WalkthroughThis PR reverts recent path-resolution changes that selected a separate Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@crates/biome_service/src/workspace/server.rs`:
- Around line 1183-1194: The plugins are being loaded with
workspace_directory.clone().unwrap_or_default(), which yields an empty path for
root configs with no workspace and causes wrong resolution in load_plugins;
change the call site (around settings.merge_with_configuration and the
self.load_plugins invocation) to compute a concrete base_dir: let base_dir =
workspace_directory.clone().or_else(|| std::env::current_dir().ok()).map(|p|
p.canonicalize().unwrap_or(p)).unwrap_or_else(|| PathBuf::from("/")); then pass
&base_dir to self.load_plugins (or otherwise ensure the path is absolute) so
plugins resolve against a sensible fallback instead of an empty path. Ensure the
change references the same symbols: settings.merge_with_configuration,
workspace_directory, and self.load_plugins/load_plugins.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.changeset/calm-carpets-enter.md (1)
5-5: Rephrase to focus on the user-facing fix rather than the revert.The current description is implementation-focused ("This PR reverts..."). Users care about what was broken and is now fixed. Consider something like: "Fixed an issue where negated directory patterns in
files.includes(e.g.,"!directory") were not honoured whenextendswas set to"//". Also: "changes on how" → "changes to how".📝 Suggested user-focused description
-Fixed [`#9052`](https://github.com/biomejs/biome/issues/9052). This PR reverts changes introduced by https://github.com/biomejs/biome/pull/8519, which caused unwanted changes on how paths are resolved. +Fixed [`#9052`](https://github.com/biomejs/biome/issues/9052), where negated directory patterns in `files.includes` (e.g., `"!directory"`) were not honoured when `extends` was set to `"//"`.Based on learnings, changesets should describe user-facing changes rather than internal implementation details like PR reverts.
Summary
Closes #9052
Test Plan
Green CI, as the test introduced by the PR was removed.
Docs