zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.74k stars 77 forks source link

Support for LSP? #1

Closed mamcx closed 2 years ago

mamcx commented 3 years ago

I wonder how could this be integrated into LSP, to forward the diagnostics to the editor(s).

P.D: Comming from https://www.reddit.com/r/rust/comments/okza9q/i_just_released_ariadne_a_crate_for_generating/h5bqd1j

zesterer commented 3 years ago

I think the first place to look is rustc's JSON output: https://doc.rust-lang.org/rustc/json.html

However, I think that LSP support is broadly tangential to the aims of the crate and should be implemented instead by a dedicated per-language server.