diff --git a/tests/baselines/reference/inlayHintsInteractiveRestParameters3.baseline b/tests/baselines/reference/inlayHintsInteractiveRestParameters3.baseline new file mode 100644 index 0000000000000..ff7ae302d2b7e --- /dev/null +++ b/tests/baselines/reference/inlayHintsInteractiveRestParameters3.baseline @@ -0,0 +1,27 @@ +// === Inlay Hints === +fn(...foo, 3, 4); + ^ +{ + "text": "x:", + "position": 133, + "kind": "Parameter", + "whitespaceAfter": true +} + +fn(...foo, 3, 4); + ^ +{ + "text": "a:", + "position": 141, + "kind": "Parameter", + "whitespaceAfter": true +} + +fn(...foo, 3, 4); + ^ +{ + "text": "b:", + "position": 144, + "kind": "Parameter", + "whitespaceAfter": true +} \ No newline at end of file diff --git a/tests/cases/fourslash/inlayHintsInteractiveRestParameters3.ts b/tests/cases/fourslash/inlayHintsInteractiveRestParameters3.ts new file mode 100644 index 0000000000000..9b898c6c942e2 --- /dev/null +++ b/tests/cases/fourslash/inlayHintsInteractiveRestParameters3.ts @@ -0,0 +1,11 @@ +/// + +////function fn(x: number, y: number, a: number, b: number) { +//// return x + y + a + b; +////} +////const foo: [x: number, y: number] = [1, 2]; +////fn(...foo, 3, 4); + +verify.baselineInlayHints(undefined, { + includeInlayParameterNameHints: "all", +});