mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
make merslsp compile again (it's still buggy tho)
This commit is contained in:
parent
0e42202f2c
commit
ac662c8e10
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "merslsp"
|
name = "merslsp"
|
||||||
version = "0.8.1"
|
version = "0.9.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mers_lib = "0.8.1"
|
mers_lib = "0.9.1"
|
||||||
lspower = "1.5.0"
|
lspower = "1.5.0"
|
||||||
tokio = { version = "1.36.0", features = ["full"] }
|
tokio = { version = "1.36.0", features = ["full"] }
|
||||||
line-span = "0.1.5"
|
line-span = "0.1.5"
|
||||||
|
@ -252,7 +252,7 @@ impl LanguageServer for Backend {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|(_, _, t)| match t {
|
.map(|(_, _, t)| match t {
|
||||||
Ok(t) => format!("\n- {t}"),
|
Ok(t) => format!("\n- {t}"),
|
||||||
Err(e) => format!("\n- {e}"),
|
Err(e) => format!("\n- {}", e.display_notheme()),
|
||||||
})
|
})
|
||||||
.collect::<String>()
|
.collect::<String>()
|
||||||
),
|
),
|
||||||
@ -263,7 +263,7 @@ impl LanguageServer for Backend {
|
|||||||
Err(e) => Hover {
|
Err(e) => Hover {
|
||||||
contents: HoverContents::Markup(MarkupContent {
|
contents: HoverContents::Markup(MarkupContent {
|
||||||
kind: MarkupKind::PlainText,
|
kind: MarkupKind::PlainText,
|
||||||
value: format!("{e}"),
|
value: format!("{}", e.display_notheme()),
|
||||||
}),
|
}),
|
||||||
range: None,
|
range: None,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user