Skip to content

Commit 119a2d6

Browse files
committed
PR review
1 parent e77169e commit 119a2d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/inlayHints.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
461461

462462
const parts: InlayHintDisplayPart[] = [];
463463
visitDisplayPart(typeNode);
464+
return parts;
464465

465466
function visitDisplayPart(node: Node) {
466467
if (!node) {
@@ -736,6 +737,8 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
736737
visitDisplayPart(propertySignature.type);
737738
}
738739
break;
740+
default:
741+
Debug.fail(`Unhandled node kind: ${node.kind}`);
739742
}
740743
}
741744

@@ -747,8 +750,6 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
747750
visitDisplayPart(node);
748751
});
749752
}
750-
751-
return parts;
752753
}
753754

754755
function isUndefined(name: __String) {

0 commit comments

Comments
 (0)