@@ -440,22 +440,24 @@ pub(crate) fn inlay_hint(
440
440
Ok ( lsp_types:: InlayHint {
441
441
position : match inlay_hint. kind {
442
442
// before annotated thing
443
- InlayKind :: ParameterHint | InlayKind :: AdjustmentHint | InlayKind :: BindingModeHint => {
444
- position ( line_index, inlay_hint. range . start ( ) )
445
- }
443
+ InlayKind :: OpeningParenthesis
444
+ | InlayKind :: ParameterHint
445
+ | InlayKind :: AdjustmentHint
446
+ | InlayKind :: BindingModeHint => position ( line_index, inlay_hint. range . start ( ) ) ,
446
447
// after annotated thing
447
448
InlayKind :: ClosureReturnTypeHint
448
449
| InlayKind :: TypeHint
449
450
| InlayKind :: ChainingHint
450
451
| InlayKind :: GenericParamListHint
451
- | InlayKind :: AdjustmentHintClosingParenthesis
452
+ | InlayKind :: ClosingParenthesis
452
453
| InlayKind :: LifetimeHint
453
454
| InlayKind :: ClosingBraceHint => position ( line_index, inlay_hint. range . end ( ) ) ,
454
455
} ,
455
456
padding_left : Some ( match inlay_hint. kind {
456
457
InlayKind :: TypeHint => !render_colons,
457
458
InlayKind :: ChainingHint | InlayKind :: ClosingBraceHint => true ,
458
- InlayKind :: AdjustmentHintClosingParenthesis
459
+ InlayKind :: ClosingParenthesis
460
+ | InlayKind :: OpeningParenthesis
459
461
| InlayKind :: BindingModeHint
460
462
| InlayKind :: ClosureReturnTypeHint
461
463
| InlayKind :: GenericParamListHint
@@ -464,7 +466,8 @@ pub(crate) fn inlay_hint(
464
466
| InlayKind :: ParameterHint => false ,
465
467
} ) ,
466
468
padding_right : Some ( match inlay_hint. kind {
467
- InlayKind :: AdjustmentHintClosingParenthesis
469
+ InlayKind :: ClosingParenthesis
470
+ | InlayKind :: OpeningParenthesis
468
471
| InlayKind :: ChainingHint
469
472
| InlayKind :: ClosureReturnTypeHint
470
473
| InlayKind :: GenericParamListHint
@@ -479,7 +482,8 @@ pub(crate) fn inlay_hint(
479
482
InlayKind :: ClosureReturnTypeHint | InlayKind :: TypeHint | InlayKind :: ChainingHint => {
480
483
Some ( lsp_types:: InlayHintKind :: TYPE )
481
484
}
482
- InlayKind :: AdjustmentHintClosingParenthesis
485
+ InlayKind :: ClosingParenthesis
486
+ | InlayKind :: OpeningParenthesis
483
487
| InlayKind :: BindingModeHint
484
488
| InlayKind :: GenericParamListHint
485
489
| InlayKind :: LifetimeHint
0 commit comments