# Change project registration RPC APIs to smooth out UI updates · gitcafe/zed

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

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

Visibility: public

Requested revision: d11beb3c02e06c164e62df4026ee50b83660901a

Requested commit: d11beb3c02e06c164e62df4026ee50b83660901a

Commit: d11beb3c02e06c164e62df4026ee50b83660901a

Tree: a062c364608b0d05de9f15c9a813424c37db5dd9

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Change project registration RPC APIs to smooth out UI updates

* Make `UnregisterProject` a request. This way the client-side project can wait
  to clear out its remote id until the request has completed, so that the
  contacts panel can avoid showing duplicate private/public projects in the
  brief time after unregistering a project, before the next UpdateCollaborators
  message is received.
* Remove the `RegisterWorktree` and `UnregisterWorktree` methods and replace
  them with a single `UpdateProject` method that idempotently updates the
  Project's list of worktrees.

```

## Parents

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

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