TypeFox / yang-lsp

A Language Server for YANG
http://www.yang-central.org
Apache License 2.0
51 stars 13 forks source link

Explicit documentation of LSP version and message support #241

Open esmasth opened 3 months ago

esmasth commented 3 months ago

There are initiatives now to integration this LSP server into editors such as Emacs/(Neo)Vim/Sublime/... and it is very helpful if the API support is documented explicitly.

esmasth commented 2 months ago

@dhuebner request your team's support here

An immediate help would be clarification on following

May I get a way to trigger LSP communication log for the VS Code client? I can provide the logs of communication triggered via the emacs lsp-mode or eglot lsp client frameworks, if differing from VS Code plugin logs.

dhuebner commented 2 months ago

@esmasth Some things I recall from working with the vs-code extension:

To give you more exact answer for some of your questions I will need to do some code digging. I don't know when I will have time for that

esmasth commented 2 months ago

@dhuebner thanks for the initiation.

I think something goes sideways relatively in the other LSP client sequence that "Language server will start building the workspace (loading *.yang files)" does not work well with Emacs/Vim but works with VSCode/Sublime - precisely only the YANG files open as buffers in Emacs/Vim are passed on to the Language Server, and further yang.settings file is seemingly not accessed by the server, possibly related to how the workspace/project settings are sent over to the server.

Could we please have an option implemented in yang-vscode to log verbosely, as a cheaper alternate to code digging? Created TypeFox/yang-vscode#92 for LSP client side aspects - should there be a separate server ticket or can this ticket #241 itself be used for it?

esmasth commented 2 months ago

Could we please have an option implemented in yang-vscode to log verbosely, as a cheaper alternate to code digging? Created https://github.com/TypeFox/yang-vscode/issues/92 for LSP client side aspects

@dhuebner closed TypeFox/yang-vscode#92 with vscode-languageclient based tracing. Would still be helpful to have clarification and documentation via this ticket.