- Notifications
You must be signed in to change notification settings - Fork220
how to retrieve definition across modules / packages programatically using lsp client?#422
-
how to code up a lsp client to find references programatically? I know aspython-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 I am struggling to find this informaiton and any help is welcome. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
As you said yourself and as the name "LanguageServer 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 Pythonpylspclient seems reasonable (but I haven't tried it & unfortunately the code seems the be the only documentation). That library in particular has a |
BetaWas this translation helpful?Give feedback.