shikijs / twoslash

You take some Shiki, add a hint of TypeScript compiler, and 🎉 incredible static code samples
https://shikijs.github.io/twoslash/
MIT License
1.08k stars 53 forks source link

Inlay hints #113

Open michaeloliverx opened 3 years ago

michaeloliverx commented 3 years ago

This new VSCode feature is great, I wonder if it would translate well to code snippets?

image

https://code.visualstudio.com/updates/v1_60#_inlay-hints-for-javascript-and-typescript

orta commented 3 years ago

huh, clever idea.

Yeah, I think this could be an opt-in flag. Step one would be to add that flag to @typescript/twoslash and return the results from the TSServer call. Then have shiki-twoslash take that data and add it inline 👍🏻

wycats commented 2 years ago

This would be awesome! 😄