agda / agda-language-server

Language Server for Agda
MIT License
99 stars 17 forks source link

Expected functionality for non-VScode editors? #25

Open omentic opened 8 months ago

omentic commented 8 months ago

Hey @banacorn! I saw in another comment somewhere that this language server operates mostly on extensions spoken by both it and agda-mode (which makes sense as to much of the trouble I was having getting it working before).

I was wondering: could what is done via custom methods and what is done via standards be written down and made explicit somewhere? It is hard for me to know exactly what to expect out of this language server at the moment (and thus if it's working).

banacorn commented 8 months ago

Hey! Here is the handler of the server:

https://github.com/agda/agda-language-server/blob/d6a02745a554871b6db24217ccc494bc6d46a904/src/Server.hs#L98-L121

You can see that STextDocumentHover is the only "standard" method that is being handled at the moment. All the other functionalities are done via custom methods.