# Omit \`tsdk_path\` from the servers' options if it does not exist \(\#23525\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 91b0ca089508671569b6537b79c4654be408a133

Requested commit: 91b0ca089508671569b6537b79c4654be408a133

Commit: 91b0ca089508671569b6537b79c4654be408a133

Tree: 3a85f4a9031c605054f319fb7e9fbac5695d3d93

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Omit `tsdk_path` from the servers' options if it does not exist (#23525)

Part of https://github.com/zed-industries/zed/issues/22606

Before, `tsdk_path` for vtsls and typescript-language-server
unconditionally set a `tsdk`/`tsserver` property for the corresponding
language server, even if there were no such directory at all.
Instead, make the corresponding code to omit such property if it was not
found on the FS.

Release Notes:

- Fixed "The path /.../tsserver.js doesn't point to a valid tsserver
install. Falling back to bundled TypeScript version." pop-up appearing
```

## Parents

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

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