# Implement the rest of the worktree pulls \(\#32269\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 77ead25f8cc2d3f375266d2bace74693a5402003

Requested commit: 77ead25f8cc2d3f375266d2bace74693a5402003

Commit: 77ead25f8cc2d3f375266d2bace74693a5402003

Tree: 641366fa15ab54decfb9c6b09f45b10a137c479b

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Implement the rest of the worktree pulls (#32269)

Follow-up of https://github.com/zed-industries/zed/pull/19230

Implements the workspace diagnostics pulling, and replaces "pull
diagnostics every open editors' buffer" strategy with "pull changed
buffer's diagnostics" + "schedule workspace diagnostics pull" for the
rest of the diagnostics.

This means that if the server does not support the workspace diagnostics
and does not return more in linked files, only the currently edited
buffer has its diagnostics updated.

This is better than the existing implementation that causes a lot of
diagnostics pulls to be done instead, and we can add more heuristics on
top later for querying more diagnostics.

Release Notes:

- N/A
```

## Parents

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

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