Skip to content

Commit 06c3da5

Browse files
authored
fix(47327): Inlay Hint for TypeScript broken for spread operation (#56368)
1 parent 13c9b16 commit 06c3da5

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// === Inlay Hints ===
2+
fn(...foo, 3, 4);
3+
^
4+
{
5+
"text": "x:",
6+
"position": 133,
7+
"kind": "Parameter",
8+
"whitespaceAfter": true
9+
}
10+
11+
fn(...foo, 3, 4);
12+
^
13+
{
14+
"text": "a:",
15+
"position": 141,
16+
"kind": "Parameter",
17+
"whitespaceAfter": true
18+
}
19+
20+
fn(...foo, 3, 4);
21+
^
22+
{
23+
"text": "b:",
24+
"position": 144,
25+
"kind": "Parameter",
26+
"whitespaceAfter": true
27+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
////function fn(x: number, y: number, a: number, b: number) {
4+
//// return x + y + a + b;
5+
////}
6+
////const foo: [x: number, y: number] = [1, 2];
7+
////fn(...foo, 3, 4);
8+
9+
verify.baselineInlayHints(undefined, {
10+
includeInlayParameterNameHints: "all",
11+
});

0 commit comments

Comments
 (0)