diff --git a/LSP-rust-analyzer.sublime-settings b/LSP-rust-analyzer.sublime-settings index 7c6eb5d..c098c72 100644 --- a/LSP-rust-analyzer.sublime-settings +++ b/LSP-rust-analyzer.sublime-settings @@ -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`. // @@ -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. @@ -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. diff --git a/plugin.py b/plugin.py index 40ba8f8..c55144b 100644 --- a/plugin.py +++ b/plugin.py @@ -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 diff --git a/sublime-package.json b/sublime-package.json index dfc863f..df2f485 100644 --- a/sublime-package.json +++ b/sublime-package.json @@ -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, @@ -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" @@ -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.", @@ -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.",