Skip to content

Commit

Permalink
update rust-analyzer to 2024-01-22 (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
sublimelsp-app[bot] authored Jan 26, 2024
1 parent 148a31e commit 4039b76
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
9 changes: 8 additions & 1 deletion LSP-rust-analyzer.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,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",
// Whether to run cargo metadata on the sysroot library allowing rust-analyzer to analyze
// third-party dependencies of the standard libraries.
// This will cause `cargo` to create a lockfile in your sysroot directory. rust-analyzer
// will attempt to clean up afterwards, but nevertheless requires the location to be writable to.
"rust-analyzer.cargo.sysrootQueryMetadata": false,
// Relative path to the sysroot library sources. If left unset, this will default to
// `{cargo.sysroot}/lib/rustlib/src/rust/library`.
//
Expand Down Expand Up @@ -278,7 +283,7 @@
// styles consistent per file.
"rust-analyzer.imports.granularity.enforce": false,
// How imports should be grouped into use statements.
// possible values: preserve, crate, module, item
// possible values: preserve, crate, module, item, one
"rust-analyzer.imports.granularity.group": "crate",
// Group inserted imports by the [following order](https://rust-analyzer.github.io/manual.html#auto-import). Groups are
// separated by newlines.
Expand Down Expand Up @@ -397,6 +402,8 @@
"rust-analyzer.procMacro.server": null,
// Exclude imports from find-all-references.
"rust-analyzer.references.excludeImports": false,
// Allow renaming of items not belonging to the loaded workspaces.
"rust-analyzer.rename.allowExternalItems": false,
// Whether to restart the server automatically when certain settings that require a restart are changed.
"rust-analyzer.restartServerOnConfigChange": false,
// Command to be executed instead of 'cargo' for runnables.
Expand Down
2 changes: 1 addition & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

SESSION_NAME = "rust-analyzer"

TAG = "2024-01-15"
TAG = "2024-01-22"
"""
Update this single git tag to download a newer version.
After changing this tag, go through the server settings again to see
Expand Down
21 changes: 14 additions & 7 deletions sublime-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@
"string"
]
},
"rust-analyzer.cargo.sysrootQueryMetadata": {
"markdownDescription": "Whether to run cargo metadata on the sysroot library allowing rust-analyzer to analyze\nthird-party dependencies of the standard libraries.\n\nThis will cause `cargo` to create a lockfile in your sysroot directory. rust-analyzer\nwill attempt to clean up afterwards, but nevertheless requires the location to be\nwritable to.",
"default": false,
"type": "boolean"
},
"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 Expand Up @@ -693,13 +698,15 @@
"preserve",
"crate",
"module",
"item"
"item",
"one"
],
"enumDescriptions": [
"Do not change the granularity of any imports and preserve the original structure written by the developer.",
"Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.",
"Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.",
"Flatten imports so that each has its own use statement."
"Flatten imports so that each has its own use statement.",
"Merge all imports into a single use statement as long as they have the same visibility and attributes."
],
"markdownDescription": "How imports should be grouped into use statements.",
"type": "string"
Expand Down Expand Up @@ -874,11 +881,6 @@
"markdownDescription": "Whether to prefer using parameter names as the name for elided lifetime hints if possible.",
"type": "boolean"
},
"rust-analyzer.inlayHints.locationLinks": {
"default": true,
"markdownDescription": "Whether to use location links for parts of type mentioned in inlay hints.",
"type": "boolean"
},
"rust-analyzer.inlayHints.maxLength": {
"default": 25,
"markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
Expand Down Expand Up @@ -1148,6 +1150,11 @@
"markdownDescription": "Exclude imports from find-all-references.",
"type": "boolean"
},
"rust-analyzer.rename.allowExternalItems": {
"markdownDescription": "Allow renaming of items not belonging to the loaded workspaces.",
"default": false,
"type": "boolean"
},
"rust-analyzer.runnables.command": {
"default": null,
"markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
Expand Down

0 comments on commit 4039b76

Please sign in to comment.