check for completion enabled before executing go to cpp definition