I anticipate having multiple providers that generate a link in the same area. For example I might have one plugin sees
require('sub-atom') and links to the code in your
node_modules, another might see that and link out to npm. If I have the package name that each provider came from I can provide preferences so that the user can favor one over the other when there are conflicts.
I hesitate to just require that the service pass its own name because there’s no way to enforce that it is consistent.