aboutsummaryrefslogtreecommitdiff
path: root/editors/code/package.json
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-12 16:02:55 +0000
committerGitHub <[email protected]>2020-03-12 16:02:55 +0000
commitd98a5fab46c5850a484349c50dda7cb823cc179a (patch)
tree754340fc8f170ed6057e6302fef1386ae8fb52d9 /editors/code/package.json
parent944bd2cbc3af1a11eb6dbaec96fcc0030f42232a (diff)
parenta153b9087520012b5f815b4df6c3657d490b30c8 (diff)
Merge #3543
3543: Parameter inlay hint separate from variable type inlay? #2876 r=matklad a=slyngbaek Add setting to allow enabling either type inlay hints or parameter inlay hints or both. Group the the max inlay hint length option into the object. - Add a new type for the inlayHint options. - Add tests to ensure the inlays don't happen on the server side Co-authored-by: Steffen Lyngbaek <[email protected]>
Diffstat (limited to 'editors/code/package.json')
-rw-r--r--editors/code/package.json11
1 files changed, 8 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 09dfc404d..3aaae357a 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -312,12 +312,17 @@
312 "exclusiveMinimum": true, 312 "exclusiveMinimum": true,
313 "description": "Number of syntax trees rust-analyzer keeps in memory" 313 "description": "Number of syntax trees rust-analyzer keeps in memory"
314 }, 314 },
315 "rust-analyzer.displayInlayHints": { 315 "rust-analyzer.inlayHints.typeHints": {
316 "type": "boolean", 316 "type": "boolean",
317 "default": true, 317 "default": true,
318 "description": "Display additional type and parameter information in the editor" 318 "description": "Whether to show inlay type hints"
319 }, 319 },
320 "rust-analyzer.maxInlayHintLength": { 320 "rust-analyzer.inlayHints.parameterHints": {
321 "type": "boolean",
322 "default": true,
323 "description": "Whether to show function parameter name inlay hints at the call site"
324 },
325 "rust-analyzer.inlayHints.maxLength": {
321 "type": [ 326 "type": [
322 "null", 327 "null",
323 "integer" 328 "integer"