File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -461,6 +461,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
461
461
462
462
const parts : InlayHintDisplayPart [ ] = [ ] ;
463
463
visitDisplayPart ( typeNode ) ;
464
+ return parts ;
464
465
465
466
function visitDisplayPart ( node : Node ) {
466
467
if ( ! node ) {
@@ -736,6 +737,8 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
736
737
visitDisplayPart ( propertySignature . type ) ;
737
738
}
738
739
break ;
740
+ default :
741
+ Debug . fail ( `Unhandled node kind: ${ node . kind } ` ) ;
739
742
}
740
743
}
741
744
@@ -747,8 +750,6 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
747
750
visitDisplayPart ( node ) ;
748
751
} ) ;
749
752
}
750
-
751
- return parts ;
752
753
}
753
754
754
755
function isUndefined ( name : __String ) {
You can’t perform that action at this time.
0 commit comments