Skip to content

Commit

Permalink
update rust-analyzer to 2024-12-02 (#146)
Browse files Browse the repository at this point in the history
* update rust-analyzer to 2024-12-02

* update settings

---------

Co-authored-by: rchl <[email protected]>
Co-authored-by: Rafal Chlodnicki <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2024
1 parent d57b6fb commit bdbe1c5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions LSP-rust-analyzer.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
//
Expand Down
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bdbe1c5

Please sign in to comment.