# copilot: Decouple copilot sign in from edit prediction settings \(\#26689\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6a95ec6a64c7b56ce107cec5b089765610ebbabd

Requested commit: 6a95ec6a64c7b56ce107cec5b089765610ebbabd

Commit: 6a95ec6a64c7b56ce107cec5b089765610ebbabd

Tree: 1b0815e682d0c50582b3129fb93682cff4868cce

Author: Smit Barmase

Committer: GitHub

## Message

```
copilot: Decouple copilot sign in from edit prediction settings (#26689)

Closes #25883

This PR allows you to use copilot chat for assistant without setting
copilot as the edit prediction provider.


[copilot.webm](https://github.com/user-attachments/assets/fecfbde1-d72c-4c0c-b080-a07671fb846e)

Todos:
- [x] Remove redudant "copilot" key from settings
- [x] Do not disable copilot LSP when `edit_prediction_provider` is not
set to `copilot`
- [x] Start copilot LSP when:
  - [x]  `edit_prediction_provider` is set to `copilot`
  - [x] Copilot sign in clicked from assistant settings
- [x] Handle flicker for frame after starting LSP, but before signing in
caused due to signed out status
- [x] Fixed this by adding intermediate state for awaiting signing in in
sign out enum
- [x] Handle cancel button should sign out from `copilot` (existing bug)
- [x] Handle modal dismissal should sign out if not in signed in state
(existing bug)

Release Notes:

- You can now sign into Copilot from assistant settings without making
it your edit prediction provider. This is useful if you want to use
Copilot chat while keeping a different provider, like Zed, for
predictions.
- Removed the `copilot` key from `features` in settings. Use
`edit_prediction_provider` instead.
```

## Parents

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

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