Making generated files IDE-aware is hard. Have you considered write_source_file? This would make the generated files part of your sour