microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
10.91k stars 764 forks source link

Command line utility for lsp client #1884

Closed Anjali05 closed 5 months ago

Anjali05 commented 5 months ago

Hi,

Can I invoke lsp via a client from the command line? I am working on a static analyzer and was wondering if I can use it like cscope from the command line. I have been using cscope but it has some limitations. For example, for making a function call graph from a start symbol cscope fails to work for certain functions with complex definitions such as (https://elixir.bootlin.com/linux/v6.1/source/drivers/tty/tty_io.c#L957 ) and (https://elixir.bootlin.com/linux/v6.1/source/kernel/cgroup/cgroup.c#L6565). I have looking for a capability similar to cscope -dL2 <function symbol> that lists all the function calls made from the passed function symbol.

Any help/insight into this will be appreciated. Thanks in advance!

dbaeumer commented 5 months ago

We don't maintain such a command line tool but it could be built on top of the vscode-languageserver-protocol npm package.