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:
parent
60ec55b179
commit
6db974dd32
1 changed files with 5 additions and 15 deletions
|
@ -11,22 +11,12 @@ You can control the behavior of the Taplo TOML language server by adding a `.tap
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
# .taplo.toml
|
# .taplo.toml
|
||||||
include = ["Cargo.toml", "some_directory/**/*.toml"]
|
|
||||||
# exclude = ["Cargo.toml"]
|
|
||||||
|
|
||||||
[formatting]
|
[formatting]
|
||||||
align_entries = true
|
align_comments = false
|
||||||
reorder_keys = true
|
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)
|
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.
|
||||||
|
|
||||||
```json
|
|
||||||
"lsp": {
|
|
||||||
"taplo": {
|
|
||||||
"settings": {
|
|
||||||
"array_auto_collapse": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue