Skip to content

Commit 2102091

Browse files
committed
v2
1 parent 5074486 commit 2102091

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,9 @@ config_data! {
494494
/// Exclude imports from find-all-references.
495495
references_excludeImports: bool = "false",
496496

497-
/// Allow renaming of items not belonging to any workspace crates.
498-
renameExternalItems_enable : bool = "false",
497+
/// Allow renaming of items not belonging to the loaded workspaces.
498+
rename_allowExternalItems: bool = "false",
499+
499500

500501
/// Command to be executed instead of 'cargo' for runnables.
501502
runnables_command: Option<String> = "null",
@@ -1743,7 +1744,7 @@ impl Config {
17431744
}
17441745

17451746
pub fn rename(&self) -> bool {
1746-
self.data.renameExternalItems_enable
1747+
self.data.rename_allowExternalItems
17471748
}
17481749

17491750
// FIXME: VSCode seems to work wrong sometimes, see https://github.com/microsoft/vscode/issues/193124

docs/user/generated_config.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ Internal config, path to proc-macro server executable.
777777
--
778778
Exclude imports from find-all-references.
779779
--
780-
[[rust-analyzer.renameExternalItems.enable]]rust-analyzer.renameExternalItems.enable (default: `false`)::
780+
[[rust-analyzer.rename.allowExternalItems]]rust-analyzer.rename.allowExternalItems (default: `false`)::
781781
+
782782
--
783-
Allow renaming of items not belonging to any workspace crates.
783+
Allow renaming of items not belonging to the loaded workspaces.
784784
--
785785
[[rust-analyzer.runnables.command]]rust-analyzer.runnables.command (default: `null`)::
786786
+

editors/code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,8 +1503,8 @@
15031503
"default": false,
15041504
"type": "boolean"
15051505
},
1506-
"rust-analyzer.renameExternalItems.enable": {
1507-
"markdownDescription": "Allow renaming of items not belonging to any workspace crates.",
1506+
"rust-analyzer.rename.allowExternalItems": {
1507+
"markdownDescription": "Allow renaming of items not belonging to the loaded workspaces.",
15081508
"default": false,
15091509
"type": "boolean"
15101510
},

0 commit comments

Comments
 (0)