diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-21 15:00:05 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-01-09 13:35:17 +0000 |
| commit | 12b7f9f7bfb4d50ee29232d9d40430fa22db7157 (patch) | |
| tree | 45b9a79b511a7c24b8f2d5b158faa8914226de59 /editors/code/package.json | |
| parent | b89c4f0a0529ca90dbe13d41fdd5e52331770900 (diff) | |
| download | rust-12b7f9f7bfb4d50ee29232d9d40430fa22db7157.tar.gz rust-12b7f9f7bfb4d50ee29232d9d40430fa22db7157.zip | |
Add an option to minimize parentheses for adjustment hints
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index aeb1d97c5f6..5ffce2f5536 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -1000,10 +1000,22 @@ "default": false, "type": "boolean" }, - "rust-analyzer.inlayHints.expressionAdjustmentHints.postfix": { - "markdownDescription": "Whether to show inlay hints for type adjustments as postfix ops (`.*` instead of `*`, etc).", - "default": false, - "type": "boolean" + "rust-analyzer.inlayHints.expressionAdjustmentHints.mode": { + "markdownDescription": "Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).", + "default": "prefix", + "type": "string", + "enum": [ + "prefix", + "postfix", + "prefer_prefix", + "prefer_postfix" + ], + "enumDescriptions": [ + "Always show adjustment hints as prefix (`*expr`).", + "Always show adjustment hints as postfix (`expr.*`).", + "Show prefix or postfix depending on which uses less parenthesis, prefering prefix.", + "Show prefix or postfix depending on which uses less parenthesis, prefering postfix." + ] }, "rust-analyzer.inlayHints.lifetimeElisionHints.enable": { "markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.", |
