Getting information from a language server such as definition location


#1

I’m trying to get information like the location of a function’s definition to use in my plugin. I installed ide-python, pyls, and atom-ide-ui which allows me to Go To Definition and Find All References but I am having a difficult time finding where these are actually implemented.

In search of a function like getFunctionDefinitionLocation(), I have only found many layers of abstraction and tracing the call stack at any given point isn’t helping (mostly just generic async callbacks, like _next() and step()).

Any suggestions on how to quickly just get the path and line number to a function’s definition or to all its references?