File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
crates/rust-analyzer/tests/slow-tests Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1093,10 +1093,18 @@ version = "0.0.0"
1093
1093
1094
1094
//- /bar/src/lib.rs
1095
1095
pub fn bar() {}
1096
+
1097
+ //- /baz/Cargo.toml
1098
+ [package]
1099
+ name = "baz"
1100
+ version = "0.0.0"
1101
+
1102
+ //- /baz/src/lib.rs
1096
1103
"# ,
1097
1104
)
1098
1105
. root ( "foo" )
1099
1106
. root ( "bar" )
1107
+ . root ( "baz" )
1100
1108
. with_config ( json ! ( {
1101
1109
"files" : {
1102
1110
"excludeDirs" : [ "foo" , "bar" ]
Original file line number Diff line number Diff line change @@ -255,6 +255,9 @@ impl Server {
255
255
. clone ( )
256
256
. extract :: < lsp_ext:: ServerStatusParams > ( "experimental/serverStatus" )
257
257
. unwrap ( ) ;
258
+ if status. health == lsp_ext:: Health :: Error {
259
+ panic ! ( "server errored while loading workspace: {:?}" , status. message) ;
260
+ }
258
261
status. quiescent
259
262
}
260
263
_ => false ,
You can’t perform that action at this time.
0 commit comments