My little guy hated being without me, and so it was wearing him (which was too hot later in the summer), placing him in the shade while he screamed for me, or just not going out during the heat/bugs. Needless to say, I got very little
gardening done last year (my guy is 20 months old, now). I did see this idea posted around, and if your guy will play happily by himself, it may work wonderfully for you!
As for bugs, rubbing garlic on clothing/skin works pretty well at keeping most mosquitoes at bay for us. It doesn't work perfectly, but it helps a lot! My husband needs it more than I, as mosquitoes love him. So, he crushes the garlic, cuts it in half, and then rubs the cut side all over his exposed skin. It seems to help with the hornets, too. I just put a little on myself here and there, which is
enough for me.