It is deliberately made to not turn on the flashlight while charging. Some hardware purpose. Same with me on my Lumia 640. Anyways I jumped to android previous June or something.
I haven't used it in months (someone else is using it) but my Lumia 640's LED flash was completely disabled whenever it was plugged in on Windows 10 Mobile.