mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Error out slow-tests when server loading errors
This commit is contained in:
parent
1d085cf03b
commit
6644fe3441
2 changed files with 11 additions and 0 deletions
|
@ -1093,10 +1093,18 @@ version = "0.0.0"
|
||||||
|
|
||||||
//- /bar/src/lib.rs
|
//- /bar/src/lib.rs
|
||||||
pub fn bar() {}
|
pub fn bar() {}
|
||||||
|
|
||||||
|
//- /baz/Cargo.toml
|
||||||
|
[package]
|
||||||
|
name = "baz"
|
||||||
|
version = "0.0.0"
|
||||||
|
|
||||||
|
//- /baz/src/lib.rs
|
||||||
"#,
|
"#,
|
||||||
)
|
)
|
||||||
.root("foo")
|
.root("foo")
|
||||||
.root("bar")
|
.root("bar")
|
||||||
|
.root("baz")
|
||||||
.with_config(json!({
|
.with_config(json!({
|
||||||
"files": {
|
"files": {
|
||||||
"excludeDirs": ["foo", "bar"]
|
"excludeDirs": ["foo", "bar"]
|
||||||
|
|
|
@ -255,6 +255,9 @@ impl Server {
|
||||||
.clone()
|
.clone()
|
||||||
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
if status.health == lsp_ext::Health::Error {
|
||||||
|
panic!("server errored while loading workspace: {:?}", status.message);
|
||||||
|
}
|
||||||
status.quiescent
|
status.quiescent
|
||||||
}
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue