diff options
| author | Liao Junxuan <mikeljx@126.com> | 2024-07-01 22:11:30 +0800 |
|---|---|---|
| committer | Liao Junxuan <mikeljx@126.com> | 2024-07-08 19:11:41 +0800 |
| commit | 4988a497fd2b22926ddb566e07c1d3528c1db82a (patch) | |
| tree | 41ae2a8c038f4e8c644baad9280c4b2a75f356fa /src/tools/rust-analyzer/editors/code | |
| parent | fafacf3e9a7b11ac56e435bd98c05b2722eab906 (diff) | |
feat: add inlay hints for generic parameters
fixes #11091 By default, only hints for const generic parameters are shown.
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/package.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index 1fec6f621d1..a06ca8d8f6a 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -1912,6 +1912,36 @@ { "title": "inlayHints", "properties": { + "rust-analyzer.inlayHints.genericParameterHints.const.enable": { + "markdownDescription": "Whether to show const generic parameter name inlay hints.", + "default": false, + "type": "boolean" + } + } + }, + { + "title": "inlayHints", + "properties": { + "rust-analyzer.inlayHints.genericParameterHints.lifetime.enable": { + "markdownDescription": "Whether to show generic lifetime parameter name inlay hints.", + "default": true, + "type": "boolean" + } + } + }, + { + "title": "inlayHints", + "properties": { + "rust-analyzer.inlayHints.genericParameterHints.type.enable": { + "markdownDescription": "Whether to show generic type parameter name inlay hints.", + "default": false, + "type": "boolean" + } + } + }, + { + "title": "inlayHints", + "properties": { "rust-analyzer.inlayHints.implicitDrops.enable": { "markdownDescription": "Whether to show implicit drop hints.", "default": false, |
