Comment

Comment by jez

One of the things I was hoping to see in this release was first-class LSP (language server protocol) support.

VS Code's editor is actually available as a separate NPM package as Monaco[0], which is great because it means that you can trivially get LSP support. For example:

https://sorbet.run

^ Sorbet (Ruby type checker) implements the LSP protocol and can be compiled to WASM. So by using Monaco in the browser, we get a playground that supports all the same features as you'd get in VS Code.

It's the same for the TypeScript Playground[1].

There's a lot of great work in this release of CodeMirror. I'm especially excited to see mobile support as a headline feature, because that's completely lacking in Monaco. Maybe LSP support can be a future improvement.

[0] https://microsoft.github.io/monaco-editor/index.html

[1] https://www.typescriptlang.org/play

parent jez 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton