chore(biome): exclude *.code-workspace from formatting - #11
joeblackwaslike wants to merge 1 commit into
Conversation
Biome reformatting a watched .code-workspace makes VS Code reload the window and drop the workspace folder. Keep these files out of Biome (v2: files.includes !glob; v1: files.ignore).
|
Warning Review limit reached
More reviews will be available in 51 minutes and 17 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates Biome configuration to exclude VS Code workspace files (*.code-workspace) from being formatted, preventing reload loops in VS Code. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Code Review
This pull request updates the Biome configuration in biome.json to exclude .code-workspace files. The reviewer recommended using the standard files.ignore array instead of adding negated patterns to files.includes to ensure a cleaner and more maintainable configuration.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| }, | ||
| "files": { | ||
| "includes": ["**", "!!**/dist", "!!**/coverage", "!!**/node_modules"] | ||
| "includes": ["**", "!**/*.code-workspace", "!!**/dist", "!!**/coverage", "!!**/node_modules"] |
There was a problem hiding this comment.
In Biome, the standard and idiomatic way to exclude files from formatting and linting is to use the files.ignore array rather than adding negated patterns to files.includes. Negating patterns inside includes can be confusing and may lead to unexpected behavior. Using files.ignore makes the configuration much cleaner and easier to maintain.
"includes": ["**"],
"ignore": ["**/*.code-workspace", "**/dist", "**/coverage", "**/node_modules"]There was a problem hiding this comment.
Auto Pull Request Review from LlamaPReview
Review Status: Automated Review Skipped
Dear contributor,
Thank you for your Pull Request. LlamaPReview has analyzed your changes and determined that this PR does not require an automated code review.
Analysis Result:
PR contains a single-line change to a build configuration file (biome.json) to exclude *.code-workspace files from formatting, which is a routine configuration update with no impact on core logic, security, or functionality.
We're continuously improving our PR analysis capabilities. Have thoughts on when and how LlamaPReview should perform automated reviews? Share your insights in our GitHub Discussions.
Best regards,
LlamaPReview Team
|
|
3 similar comments
|
|
|
|
|
|
Biome was reformatting
*.code-workspacefiles, which VS Code watches — each rewrite triggered a workspace reload loop (the window forgets the open folder on reload). Excluding*.code-workspacefrom Biome's includes (not via .gitignore) stops the loop. One-line change to biome.json.Summary by Sourcery
Build: