arjun-g / vs-swagger-viewer

Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
MIT License
171 stars 47 forks source link

Refresh viewer upon save? #90

Closed tagyoureit closed 4 years ago

tagyoureit commented 4 years ago

Thanks for writing this extension. Maybe I'm missing something, but is there a way to automatically reload the viewer upon saving the yaml file? Or is there a way to refresh an open preview window?

Right now, I have to close the existing window and then open the preview again. Or if I don't close, but start the preview again, the existing window it just opens a brand new window.

Even if I have to manually use a hotkey to load the preview but it replaced the existing preview that would be a great start but automatically refreshing upon reload would be fantastic.

thanks again!

tagyoureit commented 4 years ago

NVM... I was seeing an issue where if I removed a tag (and it was the last tag) the category still stays present. But the api call does get moved. :)