Skip to content

🐛 CPU Usage on large files #191

@WillyHetland

Description

@WillyHetland

Zed version

0.229.0

Extension version

0.2.2

Biome version

2.4.9

Operating system

  • Windows
  • macOS
  • Linux

Description

There seems to be an issue with opening large files with multiple errors.
Example is from an auto-generated nswag file which causes the linter to stall.
(content is duplicated thrice for good measure).

Same file has no issues in Neovim, WebStorm or VSCode.

Issue is the same with multibuffers in Zed.

Steps to reproduce

  1. Copy repo https://github.com/willeyh-git/biome-debug/tree/main
  2. Open /apis/fakerestapi.ts in any editor supporting Biome.
  3. Open btop / activity monitor. One core should be pegged 100%.

Restarting language server in Zed adds another core, seems like. Old one is not terminated.
Pegged now at 200%.

Tested on MacOS Sequoia 15.7.4 and Fedora 43.

Nvim
Image

Webstorm
Image

Zed
Image

Zed after LSP restart
Image

Expected behavior

Work like the other editors.

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

https://github.com/willeyh-git/biome-debug/tree/main#

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions