As already stated in the comments, the easyest ( to much .wxs files in our project to find the tiny places we used auto-detection ) is to specify the extension within the name=
property.
After some struggle we went to the style that we even name the id the way the extension is to not have to lookup what ID belongs to what name and what file from the build.
Example:
<Component Id="ImplantCopyRight">
<File Id="Copyright.txt" Name="Copyright.txt"
Source="$(var.SourceRoot)/08-Impl/img/license/Implants/Copyright.txt" />