about summary refs log tree commit diff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-24 07:38:38 +0000
committerbors <bors@rust-lang.org>2023-09-24 07:38:38 +0000
commite5e937ae5eafe38b995e26f0e6c4f1035d52a313 (patch)
tree03e170d786eb051c2cabfc8bf4ea8052f5733ac1 /editors/code/package.json
parent2b580a1f3c7bf7f2dd6d1462282362b80a6a3d91 (diff)
parent10fae6282070945531853901cc19155f59758bbc (diff)
downloadrust-e5e937ae5eafe38b995e26f0e6c4f1035d52a313.tar.gz
rust-e5e937ae5eafe38b995e26f0e6c4f1035d52a313.zip
Auto merge of #15582 - vxpm:master, r=HKalbasi
add option to show full function signatures in completion docs

implements #15538

with `"rust-analyzer.completion.fullFunctionSignatures.enable": false`:
![image](https://github.com/rust-lang/rust-analyzer/assets/59714841/ff739ad1-9975-461f-a62d-22c7823e7b71)

with `"rust-analyzer.completion.fullFunctionSignatures.enable": true`:
![image](https://github.com/rust-lang/rust-analyzer/assets/59714841/9bc98300-cef6-44ef-a353-dcf35cd36fce)
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 673dc0fcbbf..856d69d7eb8 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -799,6 +799,11 @@
                         "Do no snippet completions for callables."
                     ]
                 },
+                "rust-analyzer.completion.fullFunctionSignatures.enable": {
+                    "markdownDescription": "Whether to show full function/method signatures in completion docs.",
+                    "default": false,
+                    "type": "boolean"
+                },
                 "rust-analyzer.completion.limit": {
                     "markdownDescription": "Maximum number of completions to return. If `None`, the limit is infinite.",
                     "default": null,