Hacker News new | ask | show | jobs
by mikece 2721 days ago
Language Server implementation for Swift... meaning that writing, compiling, and debugging Swift (and Obj-C) in Visual Studio Code is just around the corner? What other editors/IDEs use Language Server?
4 comments

Doesn't the Language Server only cover writing code with things like auto-completion, documentation lookup and refactoring? Compiling doesn't need editor support beyond running arbitrary programs and debugging uses a different protocol, as far as I remember.
LSP doesn't really have anything to do with the latter two, compiling and debugging.
After Googling I see the list include Eclipse, IntelliJ, vim, and Sublime Text and VS Code with Atom and emacs in progress.

https://langserver.org/

I feel like that page might not give the full picture. I see language servers that are green on all 6 columns but don't work very well for even medium sized projects. Still, I'm super excited about the work being done here. It's only going to get better.
That table only shows that the languge server supports the feature, Whether it's stable or not depends on the language server implementation. You should report to your language server implementor about the instability
I've been using langserver in NeoVim for the past year and it's been great.
Which plugin are you using? Looking at https://langserver.org/#implementations-client there are at least four of them, and IIRC the neovim folks are also working on a native implementation.
I'm using autozimu/LanguageClient-neovim [1]

From my .config/nvim/init.vim:

call plug#begin('~/.local/share/nvim/plugged') Plug 'autozimu/LanguageClient-neovim', { 'do': ':UpdateRemotePlugins' } call plug#end()

let g:LanguageClient_serverCommands = { \ 'javascript': ['node','/Users/jrousseau/javascript-typescript-langserver/lib/language-server-stdio.js'], \ }

" Automatically start language servers. let g:LanguageClient_autoStart = 1

[1] https://github.com/autozimu/LanguageClient-neovim