How to config vs-code for show lua type? or how to convert base class to derive class

as the screen-shot, type of FindAncestorByType‘s return value is CoreObject,I can not find functions of Weapon class , only find CoreObject's functions. how convert "WEAPON" to Weapon class?

Unfortunately, as far as I know, this is not supported yet.