Fix the auto completion with records
TODO: fix record in packages, that is defined in other packages
TODO: fix when type is work.<packagename>.<type>