There is a UI Setting (and the JSON equivalent, of course) precisely for this:
TypeScript: Go to Source Definition