codemirror / codemirror5

In-browser code editor (version 5, legacy)
http://codemirror.net/5/
MIT License
26.83k stars 4.97k forks source link

Language Server Protocol Integration #4326

Closed akosyakov closed 8 years ago

akosyakov commented 8 years ago

Microsoft has announced Language Server Protocol. Is there any plans to provide integration with it?

marijnh commented 8 years ago

Not on my end. If Tern's functionality can be expressed in the vocabulary of that protocol, I'd be neat if someone writes a wrapper, but I'm not going to be the one to do that.

akosyakov commented 8 years ago

@marijnh maybe i misunderstood you, but I did not mean to serve Tern as a language server but rather let CodeMirror make use of other language servers.

marijnh commented 8 years ago

Ah, I see, that would also be possible, I guess, but you'd probably want to write a completely new plugin for it.

akosyakov commented 8 years ago

Could we have it opened and see whether somebody will step forward to implement such plugin?

marijnh commented 8 years ago

No. I am not accepting new plugins into the main distribution, so it'd have to be done as a separate project.

thorade commented 6 years ago

@akosyakov do you know whether a LSP plugin is by now available somewhere?

ManishAgrawal1410 commented 5 years ago

Is Codemirror planning to integrate with LSP server near future ? Can anyone update?

marijnh commented 5 years ago

No, it isn't. Insofar as you can talk to an LSP server at all from the browser, it'd be nice if someone worked on this, but the core library is probably not the place to do that --- this is why plugins exist.

thorade commented 4 years ago

Here is a blog post and github repo by Wylie Conlon, describing some work on teaching LSP to CodeMirror: http://www.blog.wylie.su/codemirror-lsp https://github.com/wylieconlon/lsp-editor-adapter

gsw945 commented 3 years ago

for CodeMirror 6, I found Language Server Plugin for CodeMirror 6