eca icon indicating copy to clipboard operation
eca copied to clipboard

LSP find-definition / references support

Open ericdallo opened this issue 8 months ago • 5 comments

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 avatar Mar 10 '26 12:03 ericdallo

@ericdallo Do you think we should start using pure LSPs like Opencode to be ready for CLI ECA?

zikajk avatar Jun 03 '26 10:06 zikajk

@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 avatar Jun 03 '26 15:06 ericdallo

@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.

zikajk avatar Jun 03 '26 18:06 zikajk

Hum, tramp is kinda rare case, but we should fix, all the rest works nice I believe

ericdallo avatar Jun 08 '26 14:06 ericdallo

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

ericdallo avatar Aug 19 '26 17:08 ericdallo