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 @@ -210,11 +210,13 @@ namespace ts.InlayHints {
210
210
}
211
211
case SyntaxKind . TrueKeyword :
212
212
case SyntaxKind . FalseKeyword :
213
- case SyntaxKind . ArrowFunction :
214
213
case SyntaxKind . FunctionExpression :
214
+ case SyntaxKind . ArrowFunction :
215
215
case SyntaxKind . ObjectLiteralExpression :
216
216
case SyntaxKind . ArrayLiteralExpression :
217
217
case SyntaxKind . NullKeyword :
218
+ case SyntaxKind . NoSubstitutionTemplateLiteral :
219
+ case SyntaxKind . TemplateExpression :
218
220
return true ;
219
221
case SyntaxKind . Identifier : {
220
222
const name = ( node as Identifier ) . escapedText ;
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ ////function trace(message: string) {}
4
+ ////trace(/*a*/`${1}`);
5
+ ////trace(/*b*/``);
6
+
7
+ const [ a , b ] = test . markers ( ) ;
8
+ verify . getInlayHints ( [
9
+ {
10
+ text : 'message:' ,
11
+ position : a . position ,
12
+ kind : ts . InlayHintKind . Parameter ,
13
+ whitespaceAfter : true
14
+ } ,
15
+ {
16
+ text : 'message:' ,
17
+ position : b . position ,
18
+ kind : ts . InlayHintKind . Parameter ,
19
+ whitespaceAfter : true
20
+ }
21
+ ] , undefined , {
22
+ includeInlayParameterNameHints : "literals"
23
+ } ) ;
You can’t perform that action at this time.
0 commit comments