diff options
| author | bors <bors@rust-lang.org> | 2024-09-01 06:06:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-09-01 06:06:49 +0000 |
| commit | 20ed8ce78cb11203f7af7d86fc32bb023fcac8a8 (patch) | |
| tree | 51e0d63d8e3a9102962a8a1d556546ba4891455d /src/tools/rust-analyzer/docs | |
| parent | 7b0134389d272699680899d79400c47a1d178c13 (diff) | |
| parent | 8116b62fd2eab008dcbffc6b22f1fb2b07f6deea (diff) | |
Auto merge of #18006 - ChayimFriedman2:hide-deprecated, r=Veykril
Provide an option to hide deprecated items from completion Fixes #17989. I wonder if this should be instead done in the editor, that will do it in a language-agnostic way. Can't hurt to do it in rust-analyzer, I guess.
Diffstat (limited to 'src/tools/rust-analyzer/docs')
| -rw-r--r-- | src/tools/rust-analyzer/docs/user/generated_config.adoc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/docs/user/generated_config.adoc b/src/tools/rust-analyzer/docs/user/generated_config.adoc index e4a8c6493a8..4fcf580e75f 100644 --- a/src/tools/rust-analyzer/docs/user/generated_config.adoc +++ b/src/tools/rust-analyzer/docs/user/generated_config.adoc @@ -283,6 +283,11 @@ Whether to add parenthesis and argument snippets when completing function. -- Whether to show full function/method signatures in completion docs. -- +[[rust-analyzer.completion.hideDeprecated]]rust-analyzer.completion.hideDeprecated (default: `false`):: ++ +-- +Whether to omit deprecated items from autocompletion. By default they are marked as deprecated but not hidden. +-- [[rust-analyzer.completion.limit]]rust-analyzer.completion.limit (default: `null`):: + -- |
