Type Inference in hint list. - #11949
Conversation
|
Tagging @nethip @abose @ryanstewart |
|
I believe it would be nice to show the data types as the output of Edit: We can also use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures |
|
Thanks @sprintr. I will try that once and post a snapshot of the rendering. Our goal is to have the type data without being too loud. We have to compare different displays in order to conclude. |
|
@sprintr With some CSS changes and new literals , this is how it looks. I must confess , to me it looks cluttered. |
|
@swmitra maybe aligning the literal labels to right would help (plus maybe more padding to the right side). I think that the labels the OP look pretty nice too, but then again the literals are more clearer (in a way). Maybe the labels could come from a What about mixed types? For example |
|
+1 for right align. |
|
FWIW, I like the second screenshot with right alignment. |
|
@petetnt I will write a label provider which can be overridden by extensions. |
|
@swmitra Can you try to put the type on the right of the variable names? |
|
😅 I too meant right align after the variable names! |
|
This looks good. I am not sure if short names will look good in right alignment. |
|
@larz0 @ryanstewart Please provide your inputs. |
|
Just throwing a couple of ideas:
@swmitra great job 👍 |




Show type data in the hint list. This is work in progress as we need more ideas about the type symbols which are just text in this PR.

A snapshot of the rendered types from this implementation.