From ccfac77ee8e401a2f56af0c95bd18c1adaa6a334 Mon Sep 17 00:00:00 2001 From: "sublimelsp-app[bot]" <154638104+sublimelsp-app[bot]@users.noreply.github.com> Date: Sat, 13 Jan 2024 11:15:41 +0100 Subject: [PATCH] update rust-analyzer to 2024-01-08 (#112) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update rust-analyzer to 2024-01-08 * update settings * bring back newlines --------- Co-authored-by: rchl Co-authored-by: Предраг Николић --- LSP-rust-analyzer.sublime-settings | 15 ++++++++++----- plugin.py | 2 +- sublime-package.json | 16 +++++++++++++--- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/LSP-rust-analyzer.sublime-settings b/LSP-rust-analyzer.sublime-settings index 2088917..7c6eb5d 100644 --- a/LSP-rust-analyzer.sublime-settings +++ b/LSP-rust-analyzer.sublime-settings @@ -45,6 +45,9 @@ // ``` // . "rust-analyzer.cargo.buildScripts.overrideCommand": null, + // Rerun proc-macros building/build-scripts running when proc-macro + // or build-script sources change and are saved. + "rust-analyzer.cargo.buildScripts.rebuildOnSave": false, // Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to // avoid checking unnecessary things. "rust-analyzer.cargo.buildScripts.useRustcWrapper": true, @@ -101,14 +104,14 @@ "rust-analyzer.check.ignore": [], // Specifies the working directory for running checks. // - "workspace": run checks for workspaces in the corresponding workspaces' root directories. - // This falls back to "root" if `rust-analyzer.cargo.check.invocationStrategy` is set to `once`. + // This falls back to "root" if `rust-analyzer.check.invocationStrategy` is set to `once`. // - "root": run checks in the project's root directory. - //This config only has an effect when `rust-analyzer.cargo.check.overrideCommand` is set. + // This config only has an effect when `rust-analyzer.check.overrideCommand` is set. "rust-analyzer.check.invocationLocation": "workspace", // Specifies the invocation strategy to use when running the check command. // If `per_workspace` is set, the command will be executed for each workspace. // If `once` is set, the command will be executed once. - // This config only has an effect when `rust-analyzer.cargo.check.overrideCommand` is set. + // This config only has an effect when `rust-analyzer.check.overrideCommand` is set. "rust-analyzer.check.invocationStrategy": "per_workspace", // Whether to pass `--no-default-features` to Cargo. Defaults to `rust-analyzer.cargo.noDefaultFeatures`. "rust-analyzer.check.noDefaultFeatures": null, @@ -124,8 +127,8 @@ // If there are multiple linked projects/workspaces, this command is invoked for // each of them, with the working directory being the workspace root // (i.e., the folder containing the `Cargo.toml`). This can be overwritten - // by changing `rust-analyzer.cargo.check.invocationStrategy` and - // `rust-analyzer.cargo.check.invocationLocation`. + // by changing `rust-analyzer.check.invocationStrategy` and + // `rust-analyzer.check.invocationLocation`. // // An example command would be: // @@ -324,6 +327,8 @@ "rust-analyzer.inlayHints.maxLength": 25, // Whether to show function parameter name inlay hints at the call site. "rust-analyzer.inlayHints.parameterHints.enable": true, + // Whether to show exclusive range inlay hints. + "rust-analyzer.inlayHints.rangeExclusiveHints.enable": false, // Whether to show inlay type hints for compiler inserted reborrows. // possible values: always, never, mutable "rust-analyzer.inlayHints.reborrowHints.enable": "never", diff --git a/plugin.py b/plugin.py index c02bfc7..e36263f 100644 --- a/plugin.py +++ b/plugin.py @@ -29,7 +29,7 @@ SESSION_NAME = "rust-analyzer" -TAG = "2024-01-01" +TAG = "2024-01-08" """ Update this single git tag to download a newer version. After changing this tag, go through the server settings again to see diff --git a/sublime-package.json b/sublime-package.json index 18d0ec3..dfc863f 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -108,6 +108,11 @@ "array" ] }, + "rust-analyzer.cargo.buildScripts.rebuildOnSave": { + "markdownDescription": "Rerun proc-macros building/build-scripts running when proc-macro\nor build-script sources change and are saved.", + "default": false, + "type": "boolean" + }, "rust-analyzer.cargo.buildScripts.useRustcWrapper": { "default": true, "markdownDescription": "Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to\navoid checking unnecessary things.", @@ -270,7 +275,7 @@ "Run checks in the project’s root directory.", "Run checks for workspaces in the corresponding workspaces' root directories. This falls back to `root` if rust-analyzer.cargo.checkOnSave.invocationStrategy is set to `once`." ], - "markdownDescription": "Specifies the working directory for running checks.\n- \"workspace\": run checks for workspaces in the corresponding workspaces' root directories.\n This falls back to \"root\" if `#rust-analyzer.cargo.check.invocationStrategy#` is set to `once`.\n- \"root\": run checks in the project's root directory.\nThis config only has an effect when `#rust-analyzer.cargo.check.overrideCommand#`\nis set.", + "markdownDescription": "Specifies the working directory for running checks.\n- \"workspace\": run checks for workspaces in the corresponding workspaces' root directories.\n This falls back to \"root\" if `#rust-analyzer.check.invocationStrategy#` is set to `once`.\n- \"root\": run checks in the project's root directory.\nThis config only has an effect when `#rust-analyzer.check.overrideCommand#`\nis set.", "type": "string" }, "rust-analyzer.check.invocationStrategy": { @@ -283,7 +288,7 @@ "The command will be executed once.", "The command will be executed for each workspace." ], - "markdownDescription": "Specifies the invocation strategy to use when running the check command.\nIf `per_workspace` is set, the command will be executed for each workspace.\nIf `once` is set, the command will be executed once.\nThis config only has an effect when `#rust-analyzer.cargo.check.overrideCommand#`\nis set.", + "markdownDescription": "Specifies the invocation strategy to use when running the check command.\nIf `per_workspace` is set, the command will be executed for each workspace.\nIf `once` is set, the command will be executed once.\nThis config only has an effect when `#rust-analyzer.check.overrideCommand#`\nis set.", "type": "string" }, "rust-analyzer.check.noDefaultFeatures": { @@ -295,7 +300,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.cargo.check.invocationStrategy#` and\n`#rust-analyzer.cargo.check.invocationLocation#`.\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\nAn example command would be:\n\n```bash\ncargo check --workspace --message-format=json --all-targets\n```\n.", "default": null, "items": { "type": "string" @@ -888,6 +893,11 @@ "markdownDescription": "Whether to show function parameter name inlay hints at the call\nsite.", "type": "boolean" }, + "rust-analyzer.inlayHints.rangeExclusiveHints.enable": { + "markdownDescription": "Whether to show exclusive range inlay hints.", + "default": false, + "type": "boolean" + }, "rust-analyzer.inlayHints.reborrowHints.enable": { "default": "never", "enum": [