Add a new config to allow renaming of non-local items

With #15656 we started disallowing renaming of non-local items.
Although this makes sense there are some false positives that
impacted users' workflows. So this config aims to mitigate this
by giving users the liberty to disable this feature.
This commit is contained in:
Ali Bektas 2024-01-17 18:02:41 +01:00
parent 5b62ebc23f
commit 9bd9a17ce5
8 changed files with 65 additions and 17 deletions

View file

@ -1503,6 +1503,11 @@
"default": false,
"type": "boolean"
},
"rust-analyzer.renameExternalItems.enable": {
"markdownDescription": "Allow renaming of items not belonging to any workspace crates.",
"default": false,
"type": "boolean"
},
"rust-analyzer.runnables.command": {
"markdownDescription": "Command to be executed instead of 'cargo' for runnables.",
"default": null,