File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ namespace ts.InlayHints {
47
47
return ;
48
48
}
49
49
50
- if ( isTypeNode ( node ) ) {
50
+ if ( isTypeNode ( node ) && ! isExpressionWithTypeArguments ( node ) ) {
51
51
return ;
52
52
}
53
53
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ ////const foo = (a = 1) => class { }
4
+ ////
5
+ ////const C1 = class extends foo(/*1*/1) { }
6
+ ////class C2 extends foo(/*2*/1) { }
7
+
8
+ const markers = test . markers ( ) ;
9
+
10
+ verify . getInlayHints ( [
11
+ {
12
+ text : 'a:' ,
13
+ position : markers [ 0 ] . position ,
14
+ kind : ts . InlayHintKind . Parameter ,
15
+ whitespaceAfter : true
16
+ } ,
17
+ {
18
+ text : 'a:' ,
19
+ position : markers [ 1 ] . position ,
20
+ kind : ts . InlayHintKind . Parameter ,
21
+ whitespaceAfter : true
22
+ } ,
23
+ ] , undefined , {
24
+ includeInlayParameterNameHints : "literals"
25
+ } ) ;
You can’t perform that action at this time.
0 commit comments