rust/crates
bors 84a6bc99ad Auto merge of #12742 - TonalidadeHidrica:fix-obsolete-config-keys, r=Veykril
Fix obsolete config keys

The config keys were drastically reorganized by #12010, but the docs don't reflect the updates, causing inconsistency and confusion.  I checked for such obsolete configuration keys and updated to the new one.  For reproducibility, I attach a small shell script that I used to examine the old keys.  Now the script only detects `cargoExtraArgs` and `overrideCargo`, which originates from other type definition in the code but not from the configuration.

<details><summary>script</summary>

```bash
echo "allowMergingIntoGlobImports
exprFillDefault
importEnforceGranularity
importGranularity
importMergeBehavior
importMergeBehaviour
importGroup
importPrefix
warmup
loadOutDirsFromCheck
runBuildScripts
runBuildScriptsCommand
useRustcWrapperForBuildScripts
enableExperimental
procAttrMacros
breakPoints
exitPoints
yieldPoints
linksInHover
linksInHover
gotoTypeDef
chainingHints
closureReturnTypeHints
hideNamedConstructorHints
parameterHints
reborrowHints
typeHints
lruCapacity
cargoExtraArgs
overrideCargo
rustcSource
enableRangeFormatting
assist\.allowMergingIntoGlobImports
assist\.exprFillDefault
assist\.importEnforceGranularity
assist\.importGranularity
assist\.importMergeBehavior
assist\.importMergeBehaviour
assist\.importGroup
assist\.importPrefix
primeCaches\.enable
cache\.warmup
cargo\.loadOutDirsFromCheck
cargo\.runBuildScripts
cargo\.runBuildScriptsCommand
cargo\.useRustcWrapperForBuildScripts
completion\.snippets
diagnostics\.enableExperimental
experimental\.procAttrMacros
highlighting\.strings
highlightRelated\.breakPoints
highlightRelated\.exitPoints
highlightRelated\.yieldPoints
highlightRelated\.references
hover\.documentation
hover\.linksInHover
hoverActions\.linksInHover
hoverActions\.debug
hoverActions\.enable
hoverActions\.gotoTypeDef
hoverActions\.implementations
hoverActions\.references
hoverActions\.run
inlayHints\.chainingHints
inlayHints\.closureReturnTypeHints
inlayHints\.hideNamedConstructorHints
inlayHints\.parameterHints
inlayHints\.reborrowHints
inlayHints\.typeHints
lruCapacity
runnables\.cargoExtraArgs
runnables\.overrideCargo
rustcSource
rustfmt\.enableRangeFormatting
allFeatures
addCallArgumentSnippets
addCallParenthesis
callInfo\.full
cargo\.allFeatures
checkOnSave\.allFeatures
completion\.addCallArgumentSnippets
completion\.addCallParenthesis" | while read -r pattern
do
  rg '\b'$pattern'\b([^.]|$)' . -g "!crates/rust-analyzer/src/config/patch_old_style.rs" -g "!editors/code/src/config.ts" -g "!a.sh" --no-heading --color=always --line-number
done

exit

excluded
# debug
# enable
# run
# implementations
# references
# documentation
# references
# snippets
# strings
# full
```

</details>
2022-07-13 09:46:26 +00:00
..
base-db Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
cfg internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
flycheck Bump cargo_metadata 2022-07-03 10:09:35 +03:00
hir Handle generic args per arg index 2022-07-07 00:45:22 +08:00
hir-def Implement ignore and index metavar expression 2022-07-11 18:31:42 +02:00
hir-expand Auto merge of #12719 - davidlattimore:format-args-no-unsafe, r=jonas-schievink 2022-07-08 14:10:19 +00:00
hir-ty Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
ide Fix typos 2022-07-11 21:42:05 +08:00
ide-assists Fix config keys regarding imports in docs 2022-07-11 15:43:25 +09:00
ide-completion Fix obsolete completion.snippets config 2022-07-11 17:00:40 +09:00
ide-db Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
ide-diagnostics Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
ide-ssr internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
limit
mbe Implement ignore and index metavar expression 2022-07-11 18:31:42 +02:00
parser Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
paths
proc-macro-api Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
proc-macro-srv Update 1.63 proc macro ABI to match rustc 2022-07-12 15:19:31 +02:00
proc-macro-test Bump cargo_metadata 2022-07-03 10:09:35 +03:00
profile Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
project-model Fix rustcSource -> rustc_source 2022-07-11 16:50:20 +09:00
rust-analyzer Fix obsolete enableRangeFormatting config 2022-07-11 16:52:35 +09:00
sourcegen Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
stdx Polish 2022-06-15 18:35:48 +02:00
syntax Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
test-utils internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
text-edit style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
toolchain
tt internal: Bump Dependencies 2022-06-10 17:30:02 +02:00
vfs Bump indexmap 2022-07-03 10:09:35 +03:00
vfs-notify Bump crossbeam-channel 2022-07-03 09:56:58 +03:00