File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -405,6 +405,23 @@ async fn test_server_core(
405405 codechat_server. send_result ( client_id, None ) . await . unwrap ( ) ;
406406 client_id += MESSAGE_ID_INCREMENT ;
407407
408+ // Get the resulting cursor position update after the edit.
409+ let msg = codechat_server. get_message_timeout ( TIMEOUT ) . await . unwrap ( ) ;
410+ assert_eq ! (
411+ msg,
412+ EditorMessage {
413+ id: client_id,
414+ message: EditorMessageContents :: Update ( UpdateMessageContents {
415+ file_path: md_path_str. clone( ) ,
416+ contents: None ,
417+ cursor_position: None ,
418+ scroll_position: None
419+ } )
420+ }
421+ ) ;
422+ codechat_server. send_result ( client_id, None ) . await . unwrap ( ) ;
423+ client_id += MESSAGE_ID_INCREMENT ;
424+
408425 // Perform an IDE edit.
409426 version = 5.0 ;
410427 let ide_id = codechat_server
You can’t perform that action at this time.
0 commit comments