mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
fix(55775) - TS parameter inlay hints disconsiders used parameters when set to literals (#55780)
This commit is contained in:
parent
c052bc7c72
commit
f5bf4e63d7
@ -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" });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user