fix(55775) - TS parameter inlay hints disconsiders used parameters when set to literals (#55780)

This commit is contained in:
Oleksandr T 2023-09-27 03:32:24 +03:00 committed by GitHub
parent c052bc7c72
commit f5bf4e63d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -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
}

View File

@ -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" });