# copilot: Handle sign out when copilot language server is not running \(\#26776\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c62210b17871b6195b479ea52fe78b2924339e51

Requested commit: c62210b17871b6195b479ea52fe78b2924339e51

Commit: c62210b17871b6195b479ea52fe78b2924339e51

Tree: 48de79ecb63f409b234376c27785e0c6d21e5681

Author: Smit Barmase

Committer: GitHub

## Message

```
copilot: Handle sign out when copilot language server is not running (#26776)

When copilot is not being used as the edit prediction provider and you
open a fresh Zed instance, we don’t run the copilot language server.
This is because copilot chat is purely handled via oauth token and
doesn’t require the language server.

In this case, if you click sign out, instead of asking the language
server to sign out (which isn’t running), we can manually clear the
config directory, which contains the oauth tokens. We already watch this
directory, and if the token is not found, we update the sign-in status.

Release Notes:

- N/A
```

## Parents

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

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