sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
70 stars 11 forks source link

update rust-analyzer to 2024-06-24 #130

Closed sublimelsp-app[bot] closed 4 months ago

sublimelsp-app[bot] commented 5 months ago

Update rust-analyzer from 2024-04-29 to 2024-06-24 (see all changes).

github-actions[bot] commented 5 months ago

Following are the settings schema changes between tags 2024-04-29 and 2024-06-03. Make sure that those are reflected in LSP-rust-analyzer.sublime-settings and sublime-package.json files.

--- /dev/fd/63  2024-06-03 07:22:40.635983266 +0000
+++ /dev/fd/62  2024-06-03 07:22:40.635983266 +0000
@@ -215,6 +215,12 @@
       "Fill missing expressions with reasonable defaults, `new` or `default` constructors."
     ]
   },
+  "rust-analyzer.assist.termSearch.fuel": {
+    "markdownDescription": "Term search fuel in \"units of work\" for assists (Defaults to 400).",
+    "default": 400,
+    "type": "integer",
+    "minimum": 0
+  },
   "rust-analyzer.cachePriming.enable": {
     "markdownDescription": "Warm up caches on project load.",
     "default": true,
@@ -479,7 +485,7 @@
     ]
   },
   "rust-analyzer.check.overrideCommand": {
-    "markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefore include `--message-format=json` or a similar option\n(if your client supports the `colorDiagnosticOutput` experimental\ncapability, you can use `--message-format=json-diagnostic-rendered-ansi`).\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nIf there are multiple linked projects/workspaces, this command is invoked for\neach of them, with the working directory being the workspace root\n(i.e., the folder containing the `Cargo.toml`). This can be overwritten\nby changing `#rust-analyzer.check.invocationStrategy#` and\n`#rust-analyzer.check.invocationLocation#`.\n\nIf `$saved_file` is part of the command, rust-analyzer will pass\nthe absolute path of the saved file to the provided command. This is\nintended to be used with non-Cargo build systems.\nNote that `$saved_file` is experimental and may be removed in the futureg.\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
+    "markdownDescription": "Override the command rust-analyzer uses instead of `cargo check` for\ndiagnostics on save. The command is required to output json and\nshould therefore include `--message-format=json` or a similar option\n(if your client supports the `colorDiagnosticOutput` experimental\ncapability, you can use `--message-format=json-diagnostic-rendered-ansi`).\n\nIf you're changing this because you're using some tool wrapping\nCargo, you might also want to change\n`#rust-analyzer.cargo.buildScripts.overrideCommand#`.\n\nIf there are multiple linked projects/workspaces, this command is invoked for\neach of them, with the working directory being the workspace root\n(i.e., the folder containing the `Cargo.toml`). This can be overwritten\nby changing `#rust-analyzer.check.invocationStrategy#` and\n`#rust-analyzer.check.invocationLocation#`.\n\nIf `$saved_file` is part of the command, rust-analyzer will pass\nthe absolute path of the saved file to the provided command. This is\nintended to be used with non-Cargo build systems.\nNote that `$saved_file` is experimental and may be removed in the future.\n\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.",
     "default": null,
     "type": [
       "null",
@@ -611,6 +617,12 @@
     "default": false,
     "type": "boolean"
   },
+  "rust-analyzer.completion.termSearch.fuel": {
+    "markdownDescription": "Term search fuel in \"units of work\" for autocompletion (Defaults to 200).",
+    "default": 200,
+    "type": "integer",
+    "minimum": 0
+  },
   "rust-analyzer.diagnostics.disabled": {
     "markdownDescription": "List of rust-analyzer diagnostics to disable.",
     "default": [],
predragnikolic commented 4 months ago

The Check/udate RA setting is broken because contributes.configuration is now an array https://github.com/rust-lang/rust-analyzer/commit/bf1a3a32bdd018b7d44696bafe40a7ff0538eda0?w=1

I do not plan to fix that now.

predragnikolic commented 4 months ago

Fixed the GA with this PR.