File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ namespace ts.InlayHints {
279
279
continue ;
280
280
}
281
281
282
- addTypeHints ( typeDisplayString , param . end ) ;
282
+ addTypeHints ( typeDisplayString , param . name . end ) ;
283
283
}
284
284
}
285
285
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ //// type F = (a: string, b: number) => void
4
+ //// const f: F = (a/*a*/, b/*b*/ = 1) => { }
5
+
6
+ const [ a , b ] = test . markers ( ) ;
7
+ verify . getInlayHints ( [
8
+ {
9
+ text : ': string' ,
10
+ position : a . position ,
11
+ kind : ts . InlayHintKind . Type ,
12
+ whitespaceBefore : true
13
+ } ,
14
+ {
15
+ text : ': number' ,
16
+ position : b . position ,
17
+ kind : ts . InlayHintKind . Type ,
18
+ whitespaceBefore : true
19
+ }
20
+ ] , undefined , {
21
+ includeInlayFunctionParameterTypeHints : true
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments