Closed code2graph closed 8 months ago
I know jedi is a language server
Jedi is not a language server. It is a Python API. Some projects like jedi-language-server
build language servers on top of Jedi.
This is probably what you are looking for: https://jedi.readthedocs.io/en/latest/docs/api.html#jedi.Script.get_references
Can I run a lsp client to find references programatically?
I know jedi is a language server as theoreticallty I can connect to pylance and extract references from a function call is invoked.
For example for the following code:
Here I need to find out
check_files_in_directory
is defined in theGPT4Readability.utils
.I am stugglign to find this informaiton.