Closed
Description
#3435 changed the way additional files in the sketch directory (e.g. everything but .ino or .pde) are handled, to support files in subdirectories too. AFAICS, this means that any unsaved changes in those additional files will be lost, since the files are compiled from their on-disk versions.
To properly fix this, I think the files in subdirectories need to be added to the list of sketch code files (which should also cause them to be opened in the IDE, which is a nice bonus) and the previous behaviour (without the recursive copy) should be restored.
Note that I haven't actually tested any of this, this is just based on my understanding of the code.