From bdbe1c5a97e0323185f5455125f8281200871251 Mon Sep 17 00:00:00 2001 From: "sublimelsp-app[bot]" <154638104+sublimelsp-app[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 10:27:31 +0100 Subject: [PATCH] update rust-analyzer to 2024-12-02 (#146) * update rust-analyzer to 2024-12-02 * update settings --------- Co-authored-by: rchl <153197+rchl@users.noreply.github.com> Co-authored-by: Rafal Chlodnicki --- LSP-rust-analyzer.sublime-settings | 5 +++++ plugin.py | 2 +- sublime-package.json | 13 +++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/LSP-rust-analyzer.sublime-settings b/LSP-rust-analyzer.sublime-settings index 30aec15..2bfad5f 100644 --- a/LSP-rust-analyzer.sublime-settings +++ b/LSP-rust-analyzer.sublime-settings @@ -80,6 +80,11 @@ // Relative path to the sysroot, or "discover" to try to automatically find // it via "rustc --print sysroot". Unsetting this disables sysroot loading. "rust-analyzer.cargo.sysroot": "discover", + // How to query metadata for the sysroot crate. Using cargo metadata allows rust-analyzer to analyze third-party + // dependencies of the standard libraries. + // - none - Do not query sysroot metadata, always use stitched sysroot. + // - cargo_metadata - Use `cargo metadata` to query sysroot metadata. + "rust-analyzer.cargo.sysrootQueryMetadata": "cargo_metadata", // Relative path to the sysroot library sources. If left unset, this will default to // `{cargo.sysroot}/lib/rustlib/src/rust/library`. // diff --git a/plugin.py b/plugin.py index 7ec29f0..fa9d0ff 100644 --- a/plugin.py +++ b/plugin.py @@ -30,7 +30,7 @@ SESSION_NAME = "rust-analyzer" -TAG = "2024-11-25" +TAG = "2024-12-02" """ 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 d77c5ed..803f6a5 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -181,6 +181,19 @@ "string" ] }, + "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." + ] + }, "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,