common tooltip fn for show type and completions