This upstreams a plugin of mine.
Adds support for formatting Swift using swift-format. But it requires the swift code to be without parsing errors, as otherwise an empty string would be returned.
This plugin could have few bugs/leaks, as those async functions aren't my strength. It works on those paths: Everything fine, formatting fails, no executable found.