rust-analyzer check command is `check` and not `checkOnSave` (#8054)

Ali Servet Donmez created

Reference: https://rust-analyzer.github.io/manual.html#configuration

Release Notes:

- N/A

Change summary

assets/settings/default.json | 6 +++---
docs/src/configuring_zed.md  | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)

Detailed changes

assets/settings/default.json 🔗

@@ -540,10 +540,10 @@
   "lsp": {
     // Specify the LSP name as a key here.
     // "rust-analyzer": {
-    //     //These initialization options are merged into Zed's defaults
+    //     // These initialization options are merged into Zed's defaults
     //     "initialization_options": {
-    //         "checkOnSave": {
-    //             "command": "clippy"
+    //         "check": {
+    //             "command": "clippy" // rust-analyzer.check.command (default: "check")
     //         }
     //     }
     // }

docs/src/configuring_zed.md 🔗

@@ -245,8 +245,8 @@ To override settings for a language, add an entry for that language server's nam
 "lsp": {
   "rust-analyzer": {
     "initialization_options": {
-      "checkOnSave": {
-        "command": "clippy" // rust-analyzer.checkOnSave.command
+      "check": {
+        "command": "clippy" // rust-analyzer.check.command (default: "check")
       }
     }
   }