From ac662c8e10f12424863f023a68b8d1464b5cc38f Mon Sep 17 00:00:00 2001 From: Mark <> Date: Wed, 3 Jul 2024 18:36:46 +0200 Subject: [PATCH] make merslsp compile again (it's still buggy tho) --- merslsp/Cargo.toml | 4 ++-- merslsp/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/merslsp/Cargo.toml b/merslsp/Cargo.toml index 36a42e7..b8cec37 100644 --- a/merslsp/Cargo.toml +++ b/merslsp/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "merslsp" -version = "0.8.1" +version = "0.9.1" edition = "2021" [dependencies] -mers_lib = "0.8.1" +mers_lib = "0.9.1" lspower = "1.5.0" tokio = { version = "1.36.0", features = ["full"] } line-span = "0.1.5" diff --git a/merslsp/src/main.rs b/merslsp/src/main.rs index 7b2f61e..5effd30 100644 --- a/merslsp/src/main.rs +++ b/merslsp/src/main.rs @@ -252,7 +252,7 @@ impl LanguageServer for Backend { .iter() .map(|(_, _, t)| match t { Ok(t) => format!("\n- {t}"), - Err(e) => format!("\n- {e}"), + Err(e) => format!("\n- {}", e.display_notheme()), }) .collect::() ), @@ -263,7 +263,7 @@ impl LanguageServer for Backend { Err(e) => Hover { contents: HoverContents::Markup(MarkupContent { kind: MarkupKind::PlainText, - value: format!("{e}"), + value: format!("{}", e.display_notheme()), }), range: None, },