News for hackers. Stuff that matters.
Re:CodeMirror 6 by jez on Friday February 05, 2021 @01:51PM (#26039820)
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

Re:CodeMirror 6 by lhenk on Friday February 05, 2021 @05:01PM (#26041772)
There's still no way to use create-react-app with monaco out of the box with offline support (@monaco-editor/react includes calls to a CDN instead of using the bundled JS).
Re:CodeMirror 6 by Turing_Machine on Friday February 05, 2021 @04:51PM (#26041685)
Yes, mobile support is the Holy Grail here.

It's not just Monaco... pretty much all the available text editor components (beyond a plain raw textarea) suck bigly on mobile.

Editing structured text on a phone is always going to suck to some degree, so it's always nice to see anything that promises to make it suck less.

Re:CodeMirror 6 by benatkin on Friday February 05, 2021 @04:49PM (#26041666)
It might be outside the scope of CodeMirror. CodeMirror is not an IDE. Monaco is extracted from one.
Re:CodeMirror 6 by altano on Friday February 05, 2021 @08:00PM (#26043113)
Monaco was not extracted from VS Code and predated it by many years.
Re:CodeMirror 6 by benatkin on Friday February 05, 2021 @08:28PM (#26043293)
What I meant was this:

"Please note that this repository contains no source code for the code editor, it only contains the scripts to package everything together and ship the monaco-editor npm module."

https://github.com/microsoft/monaco-editor

Re:CodeMirror 6 by ComputerGuru on Friday February 05, 2021 @05:11PM (#26041871)
VS Code is not really an IDE, either. Of course, what is an isn’t an IDE isn’t so clear-cut these days.
Re:CodeMirror 6 by franklyt on Saturday February 06, 2021 @12:48AM (#26044437)
VS Code can trivially become an IDE.
Re:CodeMirror 6 by pjmlp on Saturday February 06, 2021 @03:25AM (#26045135)
I doubt it is trivial to support what QtCreator, C++ Builder, Delphi and Blend are capable in the context of putting everything into Chrome.

Running graphical tools as external processes in their own windows misses the I in IDE.

Re:CodeMirror 6 by bromuro on Saturday February 06, 2021 @12:02AM (#26044258)
Was Dreamweaver an IDE?
Re:CodeMirror 6 by pjmlp on Saturday February 06, 2021 @03:27AM (#26045148)
Nope. Competition to Frontpage.

For it to be an IDE it would need to support developing Website end to end across all layers.

By the way I use present tense, as Dreamweaver is still around, https://www.adobe.com/products/dreamweaver.html

Re:CodeMirror 6 by bromuro on Wednesday February 10, 2021 @09:57PM (#26097749)
....wikipedia lists DW as IDE :)

I was just joking about the debate, which is running since Macromedia’s times.