Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alibektas committed Jan 18, 2024
1 parent 5074486 commit 2102091
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions crates/rust-analyzer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@ config_data! {
/// Exclude imports from find-all-references.
references_excludeImports: bool = "false",

/// Allow renaming of items not belonging to any workspace crates.
renameExternalItems_enable : bool = "false",
/// Allow renaming of items not belonging to the loaded workspaces.
rename_allowExternalItems: bool = "false",


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

pub fn rename(&self) -> bool {
self.data.renameExternalItems_enable
self.data.rename_allowExternalItems
}

// FIXME: VSCode seems to work wrong sometimes, see https://github.com/microsoft/vscode/issues/193124
Expand Down
4 changes: 2 additions & 2 deletions docs/user/generated_config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,10 @@ Internal config, path to proc-macro server executable.
--
Exclude imports from find-all-references.
--
[[rust-analyzer.renameExternalItems.enable]]rust-analyzer.renameExternalItems.enable (default: `false`)::
[[rust-analyzer.rename.allowExternalItems]]rust-analyzer.rename.allowExternalItems (default: `false`)::
+
--
Allow renaming of items not belonging to any workspace crates.
Allow renaming of items not belonging to the loaded workspaces.
--
[[rust-analyzer.runnables.command]]rust-analyzer.runnables.command (default: `null`)::
+
Expand Down
4 changes: 2 additions & 2 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,8 @@
"default": false,
"type": "boolean"
},
"rust-analyzer.renameExternalItems.enable": {
"markdownDescription": "Allow renaming of items not belonging to any workspace crates.",
"rust-analyzer.rename.allowExternalItems": {
"markdownDescription": "Allow renaming of items not belonging to the loaded workspaces.",
"default": false,
"type": "boolean"
},
Expand Down

0 comments on commit 2102091

Please sign in to comment.