# bash: Add built-in language server support \(\#52811\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5dd9082d05e4c9eb13623c1281fb7c4b0071b3a3

Requested commit: 5dd9082d05e4c9eb13623c1281fb7c4b0071b3a3

Commit: 5dd9082d05e4c9eb13623c1281fb7c4b0071b3a3

Tree: 68cf26597700e67a3de5b4eba50353341f175db0

Author: Xin Zhao

Committer: GitHub

## Message

```
bash: Add built-in language server support (#52811)

This PR introduces native LSP support for Bash by integrating
`bash-language-server`. Combined with the existing Tree-sitter grammar,
Zed now provides a complete, out-of-the-box development experience for
shell scripting.

The implementation is very similar to other npm-managed language
servers. With `shellcheck` installed, standard LSP features—including
diagnostics, code actions, go-to-definition, find-references, and code
completion—work as expected.

Since I am not a frequent user of Bash, I have intentionally limited
this implementation to a standard, "out-of-the-box" setup. I lack the
hands-on experience to identify specific pain points or advanced LSP
features that might require custom integration, so I've avoided adding
any speculative or specialized configurations, especially within the
`LspAdapter` trait.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #51917 

Release Notes:

- Added built-in language server support for Bash

---------

Co-authored-by: Finn Evers <finn@zed.dev>
```

## Parents

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

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