I wrote a Sublime plugin to beautify Go code by calling the standard toolchainās āgo fmtā tool via a Sublime build system.
After that tool has done its thing, I use Sublimeās ārevertā command to reload the active view from disk in its beautified form.
That reloading picks up the changes, but only if a time.sleep(ā¦) is inserted between running the build system and calling ārevertā. Why is that? Isnāt everything supposed to be synchronous?
Here is the plugin:
github.com/frou/GoFeather/blob/ ā¦ nds.py#L15
Here is the build system it calls:
github.com/frou/GoFeather/blob/ ā¦ lime-build