how to retrieve definition across modules / packages programatically using lsp client? #422
Unanswered
code2graph
asked this question in
Q&A
Replies: 1 comment
-
As you said yourself and as the name "Language Server Protocol" implies, you'll need a client that connects to the language server in order to make use of it programmatically. You might want to use a client library for this, e.g. for Python pylspclient seems reasonable (but I haven't tried it & unfortunately the code seems the be the only documentation). That library in particular has a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
how to code up a lsp client to find references programatically?
I know as python-lsp-server is a language server and theoreticallty I can connect to it 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 struggling to find this informaiton and any help is welcome.
Beta Was this translation helpful? Give feedback.
All reactions