Skip to content

Commit

Permalink
add information about automatic mode in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
APshenkin committed Apr 23, 2024
1 parent c8ebc20 commit 6a93be1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ The plugin tries to use Biome from your project’s local dependencies (`node_mo

You can also explicitly specify the `biome` binary the extension should use by configuring the `Biome CLI Path` in `Settings`->`Language & Frameworks`->`Biome Settings`.

### Biome Config resolution
In `Automatic Biome configuration` mode, the plugin will look for a biome configuration file upwards from the current file. If it doesn't find one, it will stop LSP server.
There are several reasons to behave like this:
1. In IDEA with multiple projects in one code base it sound reasonable to disable LSP server if there is no biome configuration file in the project.
2. In multi-root workspace, we should run biome from proper working directory, so that `include` and `exclude` paths are resolved correctly.
3. As currently LSP server proxy doesn't provide option to work with multiple configs, we should provide path to the biome configuration file and restart LSP server once active file is changed.

### Plugin settings

#### `Biome CLI Path`
Expand Down

0 comments on commit 6a93be1

Please sign in to comment.