Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update rust-analyzer to 2025-01-13 #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sublimelsp-app[bot]
Copy link
Contributor

@sublimelsp-app sublimelsp-app bot commented Dec 9, 2024

Update rust-analyzer from 2024-12-02 to 2025-01-13 (see all changes).

Copy link
Contributor

github-actions bot commented Dec 9, 2024

Following are the settings schema changes between tags 2024-12-02 and 2025-01-13. Make sure that those are reflected in LSP-rust-analyzer.sublime-settings and sublime-package.json files.

--- /dev/fd/63	2025-01-13 07:27:03.432881091 +0000
+++ /dev/fd/62	2025-01-13 07:27:03.432881091 +0000
@@ -22,6 +22,11 @@
         "default": true,
         "type": "boolean"
       },
+      "rust-analyzer.showSyntaxTree": {
+        "markdownDescription": "Whether to show the syntax tree view.",
+        "default": true,
+        "type": "boolean"
+      },
       "rust-analyzer.testExplorer": {
         "markdownDescription": "Whether to show the test explorer.",
         "default": false,
@@ -84,6 +89,11 @@
           "$rustc"
         ],
         "markdownDescription": "Problem matchers to use for `rust-analyzer.run` command, eg `[\"$rustc\", \"$rust-panic\"]`."
+      },
+      "rust-analyzer.runnables.askBeforeUpdateTest": {
+        "type": "boolean",
+        "default": true,
+        "markdownDescription": "Ask before updating the test when running it."
       }
     }
   },
@@ -102,6 +112,56 @@
         ],
         "default": "openLogs",
         "markdownDescription": "Action to run when clicking the extension status bar item."
+      },
+      "rust-analyzer.statusBar.showStatusBar": {
+        "markdownDescription": "When to show the extension status bar.\n\n`\"always\"` Always show the status bar.\n\n`\"never\"` Never show the status bar.\n\n`{ documentSelector: <DocumentSelector>[] }` Show the status bar if the open file matches any of the given document selectors.\n\nSee [VS Code -- DocumentSelector](https://code.visualstudio.com/api/references/document-selector) for more information.",
+        "anyOf": [
+          {
+            "type": "string",
+            "enum": [
+              "always",
+              "never"
+            ]
+          },
+          {
+            "type": "object",
+            "properties": {
+              "documentSelector": {
+                "type": "array",
+                "items": {
+                  "type": "object",
+                  "properties": {
+                    "language": {
+                      "type": "string"
+                    },
+                    "notebookType": {
+                      "type": "string"
+                    },
+                    "scheme": {
+                      "type": "string"
+                    },
+                    "pattern": {
+                      "type": "string"
+                    }
+                  }
+                }
+              }
+            }
+          }
+        ],
+        "default": {
+          "documentSelector": [
+            {
+              "language": "rust"
+            },
+            {
+              "pattern": "**/Cargo.toml"
+            },
+            {
+              "pattern": "**/Cargo.lock"
+            }
+          ]
+        }
       }
     }
   },
@@ -413,11 +473,14 @@
     "properties": {
       "rust-analyzer.cargo.cfgs": {
         "markdownDescription": "List of cfg options to enable with the given values.",
-        "default": {
-          "miri": null,
-          "debug_assertions": null
-        },
-        "type": "object"
+        "default": [
+          "debug_assertion",
+          "miri"
+        ],
+        "type": "array",
+        "items": {
+          "type": "string"
+        }
       }
     }
   },
@@ -496,24 +559,6 @@
   {
     "title": "cargo",
     "properties": {
-      "rust-analyzer.cargo.sysrootQueryMetadata": {
-        "markdownDescription": "How to query metadata for the sysroot crate. Using cargo metadata allows rust-analyzer\nto analyze third-party dependencies of the standard libraries.",
-        "default": "cargo_metadata",
-        "type": "string",
-        "enum": [
-          "none",
-          "cargo_metadata"
-        ],
-        "enumDescriptions": [
-          "Do not query sysroot metadata, always use stitched sysroot.",
-          "Use `cargo metadata` to query sysroot metadata."
-        ]
-      }
-    }
-  },
-  {
-    "title": "cargo",
-    "properties": {
       "rust-analyzer.cargo.sysrootSrc": {
         "markdownDescription": "Relative path to the sysroot library sources. If left unset, this will default to\n`{cargo.sysroot}/lib/rustlib/src/rust/library`.\n\nThis option does not take effect until rust-analyzer is restarted.",
         "default": null,
@@ -528,7 +573,7 @@
     "title": "cargo",
     "properties": {
       "rust-analyzer.cargo.target": {
-        "markdownDescription": "Compilation target override (target triple).",
+        "markdownDescription": "Compilation target override (target tuple).",
         "default": null,
         "type": [
           "null",
@@ -740,7 +785,7 @@
     "title": "check",
     "properties": {
       "rust-analyzer.check.workspace": {
-        "markdownDescription": "Whether `--workspace` should be passed to `cargo check`.\nIf false, `-p <package>` will be passed instead.",
+        "markdownDescription": "Whether `--workspace` should be passed to `cargo check`.\nIf false, `-p <package>` will be passed instead if applicable. In case it is not, no\ncheck will be performed.",
         "default": true,
         "type": "boolean"
       }
@@ -769,6 +814,51 @@
   {
     "title": "completion",
     "properties": {
+      "rust-analyzer.completion.autoimport.exclude": {
+        "markdownDescription": "A list of full paths to items to exclude from auto-importing completions.\n\nTraits in this list won't have their methods suggested in completions unless the trait\nis in scope.\n\nYou can either specify a string path which defaults to type \"always\" or use the more verbose\nform `{ \"path\": \"path::to::item\", type: \"always\" }`.\n\nFor traits the type \"methods\" can be used to only exclude the methods but not the trait itself.\n\nThis setting also inherits `#rust-analyzer.completion.excludeTraits#`.",
+        "default": [
+          {
+            "path": "core::borrow::Borrow",
+            "type": "methods"
+          },
+          {
+            "path": "core::borrow::BorrowMut",
+            "type": "methods"
+          }
+        ],
+        "type": "array",
+        "items": {
+          "anyOf": [
+            {
+              "type": "string"
+            },
+            {
+              "type": "object",
+              "properties": {
+                "path": {
+                  "type": "string"
+                },
+                "type": {
+                  "type": "string",
+                  "enum": [
+                    "always",
+                    "methods"
+                  ],
+                  "enumDescriptions": [
+                    "Do not show this item or its methods (if it is a trait) in auto-import completions.",
+                    "Do not show this traits methods in auto-import completions."
+                  ]
+                }
+              }
+            }
+          ]
+        }
+      }
+    }
+  },
+  {
+    "title": "completion",
+    "properties": {
       "rust-analyzer.completion.autoself.enable": {
         "markdownDescription": "Toggles the additional completions that automatically show method calls and field accesses\nwith `self` prefixed to them when inside a method.",
         "default": true,
@@ -799,6 +889,19 @@
   {
     "title": "completion",
     "properties": {
+      "rust-analyzer.completion.excludeTraits": {
+        "markdownDescription": "A list of full paths to traits whose methods to exclude from completion.\n\nMethods from these traits won't be completed, even if the trait is in scope. However, they will still be suggested on expressions whose type is `dyn Trait`, `impl Trait` or `T where T: Trait`.\n\nNote that the trait themselves can still be completed.",
+        "default": [],
+        "type": "array",
+        "items": {
+          "type": "string"
+        }
+      }
+    }
+  },
+  {
+    "title": "completion",
+    "properties": {
       "rust-analyzer.completion.fullFunctionSignatures.enable": {
         "markdownDescription": "Whether to show full function/method signatures in completion docs.",
         "default": false,
@@ -1145,6 +1248,16 @@
   {
     "title": "hover",
     "properties": {
+      "rust-analyzer.hover.actions.updateTest.enable": {
+        "markdownDescription": "Whether to show `Update Test` action. Only applies when\n`#rust-analyzer.hover.actions.enable#` and `#rust-analyzer.hover.actions.run.enable#` are set.",
+        "default": true,
+        "type": "boolean"
+      }
+    }
+  },
+  {
+    "title": "hover",
+    "properties": {
       "rust-analyzer.hover.documentation.enable": {
         "markdownDescription": "Whether to show documentation on hover.",
         "default": true,
@@ -1175,6 +1288,29 @@
   {
     "title": "hover",
     "properties": {
+      "rust-analyzer.hover.maxSubstitutionLength": {
+        "markdownDescription": "Whether to show what types are used as generic arguments in calls etc. on hover, and what is their max length to show such types, beyond it they will be shown with ellipsis.\n\nThis can take three values: `null` means \"unlimited\", the string `\"hide\"` means to not show generic substitutions at all, and a number means to limit them to X characters.\n\nThe default is 20 characters.",
+        "default": 20,
+        "anyOf": [
+          {
+            "type": "null"
+          },
+          {
+            "type": "string",
+            "enum": [
+              "hide"
+            ]
+          },
+          {
+            "type": "integer"
+          }
+        ]
+      }
+    }
+  },
+  {
+    "title": "hover",
+    "properties": {
       "rust-analyzer.hover.memoryLayout.alignment": {
         "markdownDescription": "How to render the align information in a memory layout hover.",
         "default": "hexadecimal",
@@ -1630,6 +1766,16 @@
   {
     "title": "inlayHints",
     "properties": {
+      "rust-analyzer.inlayHints.implicitSizedBoundHints.enable": {
+        "markdownDescription": "Whether to show inlay hints for the implied type parameter `Sized` bound.",
+        "default": false,
+        "type": "boolean"
+      }
+    }
+  },
+  {
+    "title": "inlayHints",
+    "properties": {
       "rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
         "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
         "default": "never",
@@ -1900,6 +2046,16 @@
     }
   },
   {
+    "title": "lens",
+    "properties": {
+      "rust-analyzer.lens.updateTest.enable": {
+        "markdownDescription": "Whether to show `Update Test` lens. Only applies when\n`#rust-analyzer.lens.enable#` and `#rust-analyzer.lens.run.enable#` are set.",
+        "default": true,
+        "type": "boolean"
+      }
+    }
+  },
+  {
     "title": "general",
     "properties": {
       "rust-analyzer.linkedProjects": {
@@ -2247,10 +2403,26 @@
   {
     "title": "typing",
     "properties": {
-      "rust-analyzer.typing.autoClosingAngleBrackets.enable": {
-        "markdownDescription": "Whether to insert closing angle brackets when typing an opening angle bracket of a generic argument list.",
-        "default": false,
-        "type": "boolean"
+      "rust-analyzer.typing.excludeChars": {
+        "markdownDescription": "Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`.",
+        "default": "|<",
+        "type": [
+          "null",
+          "string"
+        ]
+      }
+    }
+  },
+  {
+    "title": "vfs",
+    "properties": {
+      "rust-analyzer.vfs.extraIncludes": {
+        "markdownDescription": "Additional paths to include in the VFS. Generally for code that is\ngenerated or otherwise managed by a build system outside of Cargo,\nthough Cargo might be the eventual consumer.",
+        "default": [],
+        "type": "array",
+        "items": {
+          "type": "string"
+        }
       }
     }
   },

@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from 648d00f to fe282d6 Compare December 11, 2024 07:28
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2024-12-09 update rust-analyzer to 2024-12-16 Dec 17, 2024
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch 2 times, most recently from b7be946 to 1f87462 Compare December 24, 2024 07:25
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2024-12-16 update rust-analyzer to 2024-12-23 Dec 24, 2024
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from 1f87462 to adca5bb Compare December 31, 2024 07:25
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2024-12-23 update rust-analyzer to 2024-12-30 Dec 31, 2024
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from adca5bb to 8ebeee7 Compare January 7, 2025 07:25
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2024-12-30 update rust-analyzer to 2025-01-06 Jan 7, 2025
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from 8ebeee7 to 1e34a12 Compare January 8, 2025 07:25
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2025-01-06 update rust-analyzer to 2025-01-07 Jan 8, 2025
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from 1e34a12 to 2afb4cb Compare January 9, 2025 07:26
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2025-01-07 update rust-analyzer to 2025-01-08 Jan 9, 2025
@sublimelsp-app sublimelsp-app bot force-pushed the create-pull-request/patch branch from 2afb4cb to 0539526 Compare January 13, 2025 07:26
@sublimelsp-app sublimelsp-app bot changed the title update rust-analyzer to 2025-01-08 update rust-analyzer to 2025-01-13 Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant