mcrescas / veriv

VERIV: This extension provides support for loading and visualizing LDR / HDR images directly inside Vscode. Apart from that, the viewer contains more useful features than the native one included by default
https://marketplace.visualstudio.com/items?itemName=mcrespo.veriv
24 stars 0 forks source link

Vscode command for reload image #3

Open shouhanzen opened 1 year ago

shouhanzen commented 1 year ago

Hello, First of all, I would like to say, thanks for your work on this repo. I'm using it for a Computer Graphics class rn and it is working wonderfully.

I have a use case where after I render an image, I would like to open said image (in exr format). Right now I have it hooked up so when I finish the program execution, code out/img.exr is executed. So far, this is making the editor jump to the tab where the image is open, but it is not triggering a reload of the image.

Something like a veriv.reload command would be great. I see in the keybinds that veriv.open and veriv.open-dir-images are already a thing.

Again, thank you for your work on this project.

mcrescas commented 1 year ago

Hi,

Thanks for your words!

Right now there is a button that allows you to reload the image from the GUI. Are you referring to add support for another feature? I could create a new command veriv.reload similar to veriv.open, but I don't think you can launch these type of commands from the command line.

shouhanzen commented 1 year ago

Ah, my bad. Something like veriv.reload as a command would work since my current implementation is a "postDebugTask" entry in the launch config, so one could create a task that just executes the command.