Displaying diagnostic messages in-line

Hi!

New to CodeMirror, very cool stuff. I want to recreate one of my favourite VSCode plugins, displaying errors in-line, see image below:

What are the steps to implement this? I’ve tried using the renderMessage() in Diagnostics, but with no luck.

The @codemirror/lint package can’t do this. But it would be possible to write an extension that uses widget decorations at the end of lines to get this effect. The Chrome devtools do something similar to show the values of variables in the code when debugging.

1 Like