# extension_host: Fix SSH reconnect breaks language server \(\#32457\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e4e34099520a373248f140ec7a4ad8a254ad787b

Requested commit: e4e34099520a373248f140ec7a4ad8a254ad787b

Commit: e4e34099520a373248f140ec7a4ad8a254ad787b

Tree: 38bd213c0a6fdc0305a694cebd032f88f864f809

Author: Smit Barmase

Committer: GitHub

## Message

```
extension_host: Fix SSH reconnect breaks language server (#32457)

Closes #29032

This PR fixes an issue where reconnecting to SSH Remote would result in
a broken language server.

This was caused by SSH clients not registering because the `ssh_clients`
map would still contain an entry from a previously killed SSH server.
For fix, now we also check if its value has been dropped.

Release Notes:

- Fixed issue where reconnecting to SSH Remote would result in broken
code completions and diagnostics.
```

## Parents

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

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