# Limit editors' refresh runnables \(\#51299\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2b425aa102142932a88275341913e9e3d99bbbec)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2b425aa102142932a88275341913e9e3d99bbbec

Requested commit: 2b425aa102142932a88275341913e9e3d99bbbec

Commit: 2b425aa102142932a88275341913e9e3d99bbbec

Tree: 1f4f50a64883d34de0cb6531898da88a0d51bc5f

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Limit editors' refresh runnables (#51299)

Before, both rust-analyzer's LSPext tasks and tree-sitter tasks were
queried on the entire multi buffer range.

The PR moves all runnable-related logic into a submodule, and reworks
the logic to consider only the visible buffers.
Singleton buffers have their tasks resolved for the entire range still
(same as LSPext tasks work), multi buffers have their buffers' data
cached and reused.

Release Notes:

- Improved multi buffer's runnables resolution performance
```

## Parents

- [a8def21f53c18720d9c846434db9caae486890da](https://git.cafe/gitcafe/zed/commit/a8def21f53c18720d9c846434db9caae486890da?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2b425aa102142932a88275341913e9e3d99bbbec?format=markdown)
