Skip to content

Conversation

anaisbetts
Copy link

@anaisbetts anaisbetts commented Sep 22, 2025

Summary

Implements the requireConfiguration setting to enable Biome only for files under directories containing a Biome configuration file.

Description

This PR fully implements the biome.requireConfiguration setting that was previously defined but not functional. When enabled, the extension will only provide Biome features (linting, formatting, and code actions) for files that have a biome.json or biome.jsonc file in their parent directory tree.

Key changes:

  • Added configuration file detection that searches up the directory tree from each file
  • Implemented middleware in the Language Client to filter diagnostics, formatting, and code actions based on configuration presence
  • Enhanced file watching to monitor configuration files throughout the workspace, not just at the root
  • Added support for the biome.configurationPath setting when checking for configuration files

This is particularly useful for monorepos where you want to incrementally adopt Biome in specific packages without affecting the entire codebase.

Checklist

  • I have tested my changes on the following platforms:
    • Windows
    • Linux
    • macOS

TODO:

  • Make sure the Vibe Coding didn't do something silly

@anaisbetts anaisbetts force-pushed the implement-require-config branch from 56d0d5b to 33fd2bc Compare September 22, 2025 21:03
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.

1 participant