-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(59463): Feature that displays method argument names inline does n…
…ot correctly handle method overloading (#59504)
- Loading branch information
1 parent
c07da58
commit df9d165
Showing
5 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
tests/baselines/reference/inlayHintsOverloadCall2.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// === Inlay Hints === | ||
{ n: [1, 2, 3] }, | ||
^ | ||
{ | ||
"text": "ok_1:", | ||
"position": 195, | ||
"kind": "Parameter", | ||
"whitespaceAfter": true | ||
} | ||
|
||
{ | ||
^ | ||
{ | ||
"text": "ok_2:", | ||
"position": 217, | ||
"kind": "Parameter", | ||
"whitespaceAfter": true | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
////type HasID = { | ||
//// id: number; | ||
////} | ||
//// | ||
////type Numbers = { | ||
//// n: number[]; | ||
////} | ||
//// | ||
////declare function func(bad1: number, bad2: HasID): void; | ||
////declare function func(ok_1: Numbers, ok_2: HasID): void; | ||
//// | ||
////func( | ||
//// { n: [1, 2, 3] }, | ||
//// { | ||
//// id: 1, | ||
//// }, | ||
////); | ||
|
||
verify.baselineInlayHints(undefined, { | ||
includeInlayParameterNameHints: "all", | ||
}); |