JS/TS Better inlay hint positioning in multiline rest parameters
See original GitHub issueThe inlay hint positioning in multiline rest parameters is odd.
Considering this function
const setTags = (...tags) => { /* ... */ }
How the hint is positioned:
What I expected it to be:
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Multi-line parameters(arguments) with multiline paraemetrs
I can't find answer to this. What is considered better style: Solution 1(Close parentheses on new line): def initialize(arg1, arg2, ...
Read more >Warm gas in protostellar outflows - II. Extremely high-velocity ...
The best studied case is Cep-E, in which a multi-line CO study at high spectral ... Based on the LVG results and the...
Read more >Untitled
28 newman street honea path sc, Douchebag workout cheats games, Kolam pancing kuala ... Matt horpel, Forever more puff johnson, Jets vs bills...
Read more >Untitled - Snap!
Recursively sort the rest of the list, then insert the one left-over item where it belongs in the list, like adding a card...
Read more >Untitled
Multi-sensory environment room, Purple eyeshadow quad, Cavil at rest house on stilts ... Paj huam hmoob lyrics, Bacara resort pictures, The best net...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I find that really tough to read, especially if the first argument is slightly longer. I think ideally the inlay hint would produce a fake newline, but I don’t know if that is even possible.
To reflect that:
Currently it is like this:![image](https://user-images.githubusercontent.com/2738812/159608959-ae91f5dc-395d-4f40-ba73-360f780528e5.png)
And would become like this:![image](https://user-images.githubusercontent.com/2738812/159609099-8277456d-48a3-4877-ab7a-28d49ee873e7.png)
Looks really fine to me!!