diff options
author | Steffen Lyngbaek <[email protected]> | 2020-03-12 03:14:39 +0000 |
---|---|---|
committer | Steffen Lyngbaek <[email protected]> | 2020-03-12 03:14:39 +0000 |
commit | 58248e24cd45adcbfd7bfd00e1487df196b4a8c6 (patch) | |
tree | 7221dea8daa9dcede6ffaede88c890de17586c51 /editors/code/package.json | |
parent | 974ed7155acccb5da0c2aeac09d7052c4f75902d (diff) |
Switch from Vec<InlayKind> to object with props
- Instead of a single object type, use several individual nested types
to allow toggling from the settings GUI
- Remove unused struct definitions
- Install and test that the toggles work
Diffstat (limited to 'editors/code/package.json')
-rw-r--r-- | editors/code/package.json | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 6f2275062..296d6fe8e 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -307,28 +307,18 @@ | |||
307 | "exclusiveMinimum": true, | 307 | "exclusiveMinimum": true, |
308 | "description": "Number of syntax trees rust-analyzer keeps in memory" | 308 | "description": "Number of syntax trees rust-analyzer keeps in memory" |
309 | }, | 309 | }, |
310 | "rust-analyzer.inlayHintOpts.displayType": { | 310 | "rust-analyzer.inlayHints.typeHints": { |
311 | "type": "string", | 311 | "type": "boolean", |
312 | "enum": [ | 312 | "default": true, |
313 | "off", | 313 | "description": "Whether to show inlay type hints" |
314 | "typeHints", | ||
315 | "parameterHints", | ||
316 | "full" | ||
317 | ], | ||
318 | "enumDescriptions": [ | ||
319 | "No type inlay hints", | ||
320 | "Type inlays hints only", | ||
321 | "Parameter inlays hints only", | ||
322 | "All inlay hints types" | ||
323 | ], | ||
324 | "default": "full", | ||
325 | "description": "Display additional type and parameter information in the editor" | ||
326 | }, | 314 | }, |
327 | "rust-analyzer.inlayHintOpts.maxLength": { | 315 | "rust-analyzer.inlayHints.parameterHints": { |
328 | "type": [ | 316 | "type": "boolean", |
329 | "null", | 317 | "default": true, |
330 | "integer" | 318 | "description": "Whether to show function parameter name inlay hints at the call site" |
331 | ], | 319 | }, |
320 | "rust-analyzer.inlayHints.maxLength": { | ||
321 | "type": "integer", | ||
332 | "default": 20, | 322 | "default": 20, |
333 | "minimum": 0, | 323 | "minimum": 0, |
334 | "exclusiveMinimum": true, | 324 | "exclusiveMinimum": true, |