From 6db974dd324e1b7f41f09a29c04e1234cc99723c Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Sun, 27 Apr 2025 15:53:55 +0000 Subject: [PATCH] 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 --- docs/src/languages/toml.md | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/docs/src/languages/toml.md b/docs/src/languages/toml.md index fd0cf62c2985e7b8e2dadf9f439e7304ebbe8904..eb51dbb93bf3031449744ccd4617992f46d31351 100644 --- a/docs/src/languages/toml.md +++ b/docs/src/languages/toml.md @@ -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 -``` -Alternatively, you can pass taplo configuration options via [Zed LSP Settings](../configuring-zed.md#lsp) - -```json - "lsp": { - "taplo": { - "settings": { - "array_auto_collapse": false - } - } - } +include = ["Cargo.toml", "some_directory/**/*.toml"] +# exclude = ["vendor/**/*.toml"] ``` + +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.