diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-12-24 14:16:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-24 14:16:16 +0000 |
| commit | 8bfb2fe0189e17a9b4e5d3365849ed0f6641e6a2 (patch) | |
| tree | 8f099a43e0aad565151f4b2773232c62092d5dfe /src/tools/rust-analyzer/editors/code | |
| parent | eb80a6bd48c3809e95222ddd9249af387705c98e (diff) | |
| parent | b80bb583e43181bc4a4470a2c19481583edab10b (diff) | |
| download | rust-8bfb2fe0189e17a9b4e5d3365849ed0f6641e6a2.tar.gz rust-8bfb2fe0189e17a9b4e5d3365849ed0f6641e6a2.zip | |
Merge pull request #18707 from ChayimFriedman2/subst
feat: Show substitution where hovering over generic things
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/package.json | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index fc3bc73b70d..b9249e9ac8b 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -1548,6 +1548,29 @@ { "title": "hover", "properties": { + "rust-analyzer.hover.maxSubstitutionLength": { + "markdownDescription": "Whether to show what types are used as generic arguments in calls etc. on hover, and what is their max length to show such types, beyond it they will be shown with ellipsis.\n\nThis can take three values: `null` means \"unlimited\", the string `\"hide\"` means to not show generic substitutions at all, and a number means to limit them to X characters.\n\nThe default is 20 characters.", + "default": 20, + "anyOf": [ + { + "type": "null" + }, + { + "type": "string", + "enum": [ + "hide" + ] + }, + { + "type": "integer" + } + ] + } + } + }, + { + "title": "hover", + "properties": { "rust-analyzer.hover.memoryLayout.alignment": { "markdownDescription": "How to render the align information in a memory layout hover.", "default": "hexadecimal", |
