Skip to content

Commit

Permalink
PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSolOs committed Sep 18, 2023
1 parent e77169e commit 119a2d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/inlayHints.ts
Expand Up @@ -461,6 +461,7 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {

const parts: InlayHintDisplayPart[] = [];
visitDisplayPart(typeNode);
return parts;

function visitDisplayPart(node: Node) {
if (!node) {
Expand Down Expand Up @@ -736,6 +737,8 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
visitDisplayPart(propertySignature.type);
}
break;
default:
Debug.fail(`Unhandled node kind: ${node.kind}`);
}
}

Expand All @@ -747,8 +750,6 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
visitDisplayPart(node);
});
}

return parts;
}

function isUndefined(name: __String) {
Expand Down

0 comments on commit 119a2d6

Please sign in to comment.