On post-save I'm checking to see if the file which was saved is empty and if it is calling an external tool to auto-fill this file with some default content.
My issue is that the active buffer is not refreshing with this new content. I do see a "Reloading " printed to the console, but the buffer does not visually refresh.
If I set focus to another view and then put focus back on the original view the new content is displayed.
I've seen a similar question raised here https://forum.sublimetext.com/t/refresh-the-buffer/1578/1 but the "revert" command didn't seem to do anything.
Any ideas how to get around this? Perhaps it may be good to have a "reload" or "refresh" option in the view API?