I’m trying to get this Apex Language Server connected. I can start the server from the command line but I’m unable to get any clients to attach. LspInfo seems to think the file type is ‘st’ but the file extension is .cls. See screenshot. Where is it getting st from?
I found the :setfiletype command in the documentation. So this hurdle is passed for now, I’ll figure out the autodetect later. Now I think I need to figure out what arguments to pass to the java executable.
Where you able to make it work? I’m trying to follow your configuration but to no avail…
By the way this is how you can set file type for apex automatically:
au BufRead,BufNewFile *.cls,*.trigger,*.apex set filetype=apex