This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,13 @@ fn client_test_simple_workspace() {
175
175
let count = rls
176
176
. messages ( )
177
177
. iter ( )
178
- . filter ( |msg| msg[ "method" ] == "window /progress" )
179
- . filter ( |msg| msg[ "params" ] [ "title" ] == "Building " )
178
+ . filter ( |msg| msg[ "method" ] == "$ /progress" )
179
+ . filter ( |msg| msg[ "kind" ] == "report " )
180
180
. filter ( |msg| {
181
- msg[ "params" ] [ "message" ] . as_str ( ) . map ( |x| x. starts_with ( "member_" ) ) . unwrap_or ( false )
181
+ msg[ "params" ] [ "value" ] [ "message" ]
182
+ . as_str ( )
183
+ . map ( |x| x. starts_with ( "member_" ) )
184
+ . unwrap_or ( false )
182
185
} )
183
186
. count ( ) ;
184
187
assert_eq ! ( count, 4 ) ;
Original file line number Diff line number Diff line change @@ -265,9 +265,7 @@ impl<T: AsyncRead + AsyncWrite> RlsHandle<T> {
265
265
/// Blocks until the processing (building + indexing) is done by the RLS.
266
266
#[ allow( clippy:: bool_comparison) ]
267
267
pub fn wait_for_indexing ( & mut self ) {
268
- self . wait_for_message ( |msg| {
269
- msg[ "params" ] [ "title" ] == "Indexing" && msg[ "params" ] [ "done" ] == true
270
- } ) ;
268
+ self . wait_for_message ( |msg| msg[ "params" ] [ "value" ] [ "kind" ] == "end" ) ;
271
269
}
272
270
273
271
/// Blocks until a "textDocument/publishDiagnostics" message is received.
You can’t perform that action at this time.
0 commit comments