biomejs / biome-vscode

Biome extension for Visual Studio Code and VSCodium
https://marketplace.visualstudio.com/items?itemName=biomejs.biome
Apache License 2.0
237 stars 32 forks source link

🐛 Editing `settings.json` causes the extension to restart the LSP session at every keystroke #322

Closed nhedger closed 3 months ago

nhedger commented 3 months ago

VS Code version

1.86.1

Extension version

3.0.0 (nightly)

Biome version

1.8.3

Operating system

Description

The extension is configured to automatically reload existing LSP sessions when the settings are modified. This causes an issue when typing directly into settings.json because the sessions are restarted at every keystroke.

This results in a slowdown.

Steps to reproduce

  1. Open the settings CMD + ,
  2. Trying modifying biome.lsp.bin by typing
  3. See the output log and watch how sessions are being rapidly created and deleted

Expected behavior

A debounce mechanism should be implemented to handle the case.

Does this issue occur when using the CLI directly?

No

Link to a minimal reproduction

n/a

Logs

No response