I spent hours looking for the solution, and I found it minutes after I posted the question here...
I just had to use VSConstants.CATID.CSharpFileProperties_string
and VSConstants.CATID.VBFileProperties_string
. Now my extender is called for each project item.