# Fix data collection permission asked multiple times for same worktree \(\#24016\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6f467281e0d0f7e78bd0297cd79ef2a99008b2e7

Requested commit: 6f467281e0d0f7e78bd0297cd79ef2a99008b2e7

Commit: 6f467281e0d0f7e78bd0297cd79ef2a99008b2e7

Tree: 92535204fa712b9fcc0eddf43bb7fdee405df4df

Author: João Marcos

Committer: GitHub

## Message

```
Fix data collection permission asked multiple times for same worktree (#24016)

After the user confirmation, only the current instance of the
completions provider had the answer stored.

In this PR, the changes are propagated by having each provider have an
`Entity<choice>`, and having a lookup map with one `Entity<choice>` for
each worktree that `Zeta` has seen.

Release Notes:

- N/A
```

## Parents

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

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