OS: macOS 12.5.1
VS Code: 1.71.2
Folder Source Actions extension: 0.2.1
Haxe extension: 2.25.0
The Haxe extension allows to organize imports in Haxe source code (.hx files).
I tried to run it on the src
dir of a somewhat large project (a directory hierarchy containing a total of 830 code files).
VS Code worked for a while, resulting in a large amount of open tabs, each marked as modified.
I did "Save All" and "Close All Editors", then checked git status
. Only some 60 files had the imports organized. The rest were not touched. It seems that the extension stops at some point, it's not clear why. If I repeatedly run the extension on the src
dir, without saving/closing any editors, each time it goes a bit further (e.g. there are 20-30 more open editors on each run).
I'd like to know what could make the extension bail out early when processing hundreds of files in the directory hierarchy. It could be a bug in the FSA (Folder Source Actions) extension, or the Haxe extension returning some error or throwing an exception while processing a particular file, which is then either not handled by the FSA extension, or handled by not continuing with the rest of the files. If it is a problem with some of our source code files, it is a bit strange that on each run, the process can succeed to go further. Normally the Haxe extension would show compiler errors, if there would be problems with any of the source files. In this case normally this extension complains that the compiler server couldn't initialize due to errors. There is no such error message.
Would be nice to find a way to identify why it's happening, and fix it.
Somewhat unrelated: I also think it would be much more convenient if the FSA extension would organize imports, save and close each file, rather than ending up with hundreds of open/unsaved editors. The imports organizing doesn't normally need reviewing. And if it does, the changes can be easily reviewed using the VCS (e.g. git diff
). No good reason to leave a ton of open/unsaved editors. Please consider making this change.