# Fix LSP shenanigans when opening and/or editing settings files \(\#4212\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4cccb4e3d03b943f03117477ca949c94aae78ff3

Requested commit: 4cccb4e3d03b943f03117477ca949c94aae78ff3

Commit: 4cccb4e3d03b943f03117477ca949c94aae78ff3

Tree: d500b343adb5e526fa4c42ab35f83c180fc99b0a

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix LSP shenanigans when opening and/or editing settings files (#4212)

Fixes
* LSP servers never being shut down on worktree release
* worktrees (and LSP servers) being re-created for settings files on
every opening

Also,
* removes `async` from `workspace_configuration` to simplify the code:
we only return static configurations now

Release Notes:

- Fixed excessive LSP server creation for Zed settings files
```

## Parents

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

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

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