mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +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
|
||||
pub fn bar() {}
|
||||
|
||||
//- /baz/Cargo.toml
|
||||
[package]
|
||||
name = "baz"
|
||||
version = "0.0.0"
|
||||
|
||||
//- /baz/src/lib.rs
|
||||
"#,
|
||||
)
|
||||
.root("foo")
|
||||
.root("bar")
|
||||
.root("baz")
|
||||
.with_config(json!({
|
||||
"files": {
|
||||
"excludeDirs": ["foo", "bar"]
|
||||
|
|
|
@ -255,6 +255,9 @@ impl Server {
|
|||
.clone()
|
||||
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
|
||||
.unwrap();
|
||||
if status.health == lsp_ext::Health::Error {
|
||||
panic!("server errored while loading workspace: {:?}", status.message);
|
||||
}
|
||||
status.quiescent
|
||||
}
|
||||
_ => false,
|
||||
|
|
Loading…
Reference in a new issue