If trying to resolve the location of a type with an ID, show the location of the ID node instead of the entire type. For type references, show the reference target without template arguments. This makes sure that the location range is not too large and hard to read.