zed/docs/src/languages
Xin Zhao cdb34c30c9
python: Register LSP adapters directly to the LanguageRegistry (#50662)
The purpose of `register_available_lsp_adapter()` is to allow language
servers to be reused across multiple languages. Since adapters like
`ty`, `pylsp`, and `pyright` are specific to Python, there is no need to
register them for other languages. Additionally, registering them
directly to the global `LanguageRegistry` results in negligible resource
consumption.

We can then use the default settings to control the default language
server for Python, as referenced here:


9c9337a802/assets/settings/default.json (L2119-L2130)

Additionally, the documentation for Python has been updated to clarify
that the `"..."` syntax does not mean "keep the rest at default," but
rather "include all other available servers."

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing (no sure how to add test for this)
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A *or* Added/Fixed/Improved ...
2026-03-04 07:31:27 +00:00
..
ansible.md docs: Improve Ansible docs (#49682) 2026-03-01 09:52:30 +00:00
asciidoc.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
astro.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
bash.md docs: Point to the right Bash extension repository (#50271) 2026-02-27 06:24:34 +00:00
biome.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
c.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
clojure.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
cpp.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
csharp.md Update C# docs (#49789) 2026-02-21 06:58:52 +00:00
css.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
dart.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
deno.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
diff.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
docker.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
elixir.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
elm.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
emmet.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
erlang.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
fish.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
gdscript.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
gleam.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
glsl.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
go.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
groovy.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
haskell.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
helm.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
html.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
java.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
javascript.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
json.md docs: Remove Preview callouts for stable release (#50119) 2026-02-25 14:16:54 -06:00
jsonnet.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
julia.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
kotlin.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
lua.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
luau.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
makefile.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
markdown.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
nim.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
ocaml.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
opentofu.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
php.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
powershell.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
prisma.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
proto.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
purescript.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
python.md python: Register LSP adapters directly to the LanguageRegistry (#50662) 2026-03-04 07:31:27 +00:00
r.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
racket.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
rego.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
roc.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
rst.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
ruby.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
rust.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
scala.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
scheme.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
sh.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
sql.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
svelte.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
swift.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
tailwindcss.md Fix docs validation to detect unknown keys (#49660) 2026-02-19 20:46:21 -05:00
terraform.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
toml.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
typescript.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
uiua.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
vue.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
xml.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
yaml.md docs: Remove Preview callouts for stable release (#50119) 2026-02-25 14:16:54 -06:00
yara.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
yarn.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00
zig.md docs: Apply documentation standards across all docs (#49177) 2026-02-17 20:58:17 -06:00