mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Address comments on IndexSignature inlay hint PR (#56613)
This commit is contained in:
parent
20c0f40526
commit
5b7344ef52
@ -753,9 +753,8 @@ export function provideInlayHints(context: InlayHintsContext): InlayHint[] {
|
||||
break;
|
||||
case SyntaxKind.IndexSignature:
|
||||
Debug.assertNode(node, isIndexSignatureDeclaration);
|
||||
Debug.assertEqual(node.parameters.length, 1);
|
||||
parts.push({ text: "[" });
|
||||
visitForDisplayParts(node.parameters[0]);
|
||||
visitDisplayPartList(node.parameters, ", ");
|
||||
parts.push({ text: "]" });
|
||||
if (node.type) {
|
||||
parts.push({ text: ": " });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user