Uh oh!
There was an error while loading. Please reload this page.
Add inlay hints support - #42089
Conversation
typescript-bot
commented
Dec 23, 2020
Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping @sheetalkamat, @amcasey, @mjbvz, @minestarks for you. Feel free to loop in other consumers/maintainers if necessary |
Kingwl
commented
Dec 23, 2020
@mjbvz |
Kingwl
commented
Dec 24, 2020
Kingwl
commented
Dec 27, 2020
@typescript-bot pack this. |
Hey @Kingwl, I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
typescript-bot
commented
Dec 28, 2020
The TypeScript team hasn't accepted the linked issue #42073. If you can get it accepted, this PR will have a better chance of being reviewed. |
Uh oh!
There was an error while loading. Please reload this page.
andrewbranch
commented
Jun 24, 2021
Well, let me think about some examples: f(1);f(1+2);f("Some String");f("Some String".toLowerCase());f(someString);f(someString.toLowerCase());f([0,1,2]);f([0,1,2].map(processNumber));f(integers);f(integers.map(processNumber));In these cases, I feel like the literal arguments and the expressions made up of literals convey the same amount of semantic information. I don’t think the That said, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks for the review. I've updated followed the comments. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jessetrinity
commented
Jun 24, 2021
I haven't tried this out yet to see how it actually plays. I assume I need vscode insiders? |
andrewbranch
commented
Jun 24, 2021
@jessetrinity you need a local build of microsoft/vscode#113412 |
andrewbranch
left a comment
There was a problem hiding this comment.
Thanks for bearing with us on the last-minute updates, @Kingwl 🌟
jessetrinity
left a comment
There was a problem hiding this comment.
InlayHintKind was changed to
exportconstenumInlayHintKind{Type="Type",Parameter="Parameter",Enum="Enum",}in protocol.ts but nowhere else.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Kingwl
commented
Jun 25, 2021
Thanks! |
Avishayy
commented
Jan 9, 2023
Thanks for creating such a great feature! I have a question, why is there a limit on the hint length? Specifically, why is |

Fixes#42073
Features:
Something need to consider:
Type Parameter: The root cause is we could inference type fromI thinktype nodeortype. Which one should we take?typeis better.Thanks!