rescript-lang / rescript-vscode

Official VSCode plugin for ReScript
MIT License
328 stars 56 forks source link

Support for showing the fully ppx code for a file #68

Open mbergal opened 3 years ago

mbergal commented 3 years ago

reason-vscode has quite useful Show the fully ppx code for this file command that shows what the ppx result would look for that file. Is it possible to replicate this functionality in Rescript extension?

image

zth commented 2 years ago

@cristianoc is there a way for us currently to get the source after PPX in the extension?

cristianoc commented 2 years ago

I think it would have to happen at a lower level, after the ppx has run, but before type checking. So this is something that I guess the compiler binary should provide, at which point it could be exposed here.