LSP find-definition / references support
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
This is a next step after #56, with that AI will navigate through code faster and with less tokens. Since editors already have communication with ECA, it's easy to use exisitng running LSP server if any, we just need to tell server when one is available to use the tool and the editor will take care of the rest on eca client side.
@ericdallo Do you think we should start using pure LSPs like Opencode to be ready for CLI ECA?
@zikajk a good question but TBH I'd like to avoid that complexity, not sure it's worth it, so leave eca-cli without lsp support for now?
@ericdallo Makes sense. I just noticed today that my diagnostics in Emacs stopped working (timeouted) after I opened a file via TRAMP, so I thought that solving the discussed via LSP only might be more reliable.
Hum, tramp is kinda rare case, but we should fix, all the rest works nice I believe
Shipped in server 0.155.0: eca__editor_definition and eca__editor_references tools backed by the editor's language server, via new editor/getDefinition and editor/getReferences client requests (docs/protocol.md).
Client support:
- eca-emacs (lsp-mode): editor-code-assistant/eca-emacs@16a6ccd
- eca-vscode v0.52.0: editor-code-assistant/eca-vscode@8466909
- eca-intellij 0.29.0 (IntelliJ PSI): editor-code-assistant/eca-intellij@eede03e