mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-12 23:36:28 -05:00
fix(55775) - TS parameter inlay hints disconsiders used parameters when set to literals (#55780)
This commit is contained in:
@@ -194,4 +194,22 @@ trace(``);
|
||||
"position": 758,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
}
|
||||
|
||||
'foo',
|
||||
^
|
||||
{
|
||||
"text": "param2:",
|
||||
"position": 884,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
}
|
||||
|
||||
true,
|
||||
^
|
||||
{
|
||||
"text": "param3:",
|
||||
"position": 895,
|
||||
"kind": "Parameter",
|
||||
"whitespaceAfter": true
|
||||
}
|
||||
@@ -49,4 +49,16 @@
|
||||
////trace(`${1}`);
|
||||
////trace(``);
|
||||
|
||||
////function func(
|
||||
//// param1: number,
|
||||
//// param2: string,
|
||||
//// param3: boolean,
|
||||
////) {}
|
||||
////const param1 = 1;
|
||||
////func(
|
||||
//// param1,
|
||||
//// 'foo',
|
||||
//// true,
|
||||
////)
|
||||
|
||||
verify.baselineInlayHints(undefined, { includeInlayParameterNameHints: "literals" });
|
||||
|
||||
Reference in New Issue
Block a user