docs: TOML LSP (Taplo) requires a manual restart to apply changes (#29504)

Add note about manual restart
Remove taplo LSP settings example (broken)

Release Notes:

- N/A
This commit is contained in:
Peter Tripp 2025-04-27 15:53:55 +00:00 committed by GitHub
parent 60ec55b179
commit 6db974dd32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,22 +11,12 @@ You can control the behavior of the Taplo TOML language server by adding a `.tap
```toml
# .taplo.toml
include = ["Cargo.toml", "some_directory/**/*.toml"]
# exclude = ["Cargo.toml"]
[formatting]
align_entries = true
align_comments = false
reorder_keys = true
include = ["Cargo.toml", "some_directory/**/*.toml"]
# exclude = ["vendor/**/*.toml"]
```
Alternatively, you can pass taplo configuration options via [Zed LSP Settings](../configuring-zed.md#lsp)
```json
"lsp": {
"taplo": {
"settings": {
"array_auto_collapse": false
}
}
}
```
Note: The taplo language server will not automatically pickup changes to `.taplo.toml`. You must manually trigger {#action editor::RestartLanguageServer} or reload Zed for it to pickup changes.