diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-21 16:53:06 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-21 16:53:06 +0200 |
| commit | 595b4c3c32cb3b2ba10ab4b7a656daddc64e0858 (patch) | |
| tree | e3b92951139521dd315a986fa99cfde7c03e10f6 /src/tools/rust-analyzer/editors/code | |
| parent | fa404339c9821b9c61661d63326d95e354b9753f (diff) | |
| parent | a9116523604c998e7781f60d3b5a6f586e0414a9 (diff) | |
| download | rust-595b4c3c32cb3b2ba10ab4b7a656daddc64e0858.tar.gz rust-595b4c3c32cb3b2ba10ab4b7a656daddc64e0858.zip | |
Merge commit 'a9116523604c998e7781f60d3b5a6f586e0414a9' into sync-from-ra
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/package.json | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index 8307f6833e6..5ed5146ea1b 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -648,6 +648,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, @@ -1115,13 +1120,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." ] }, "rust-analyzer.imports.group.enable": { @@ -1498,6 +1505,11 @@ "default": false, "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": { "markdownDescription": "Command to be executed instead of 'cargo' for runnables.", "default": null, |
