@@ -262,9 +262,10 @@ async fn test_vscode_ide_websocket1() {
262262 id : INITIAL_IDE_MESSAGE_ID ,
263263 message : EditorMessageContents :: Update ( UpdateMessageContents {
264264 file_path : "" . to_string ( ) ,
265- contents : None ,
266265 cursor_position : None ,
267266 scroll_position : None ,
267+ is_re_translation : false ,
268+ contents : None ,
268269 } ) ,
269270 } ,
270271 )
@@ -542,6 +543,9 @@ async fn test_vscode_ide_websocket8() {
542543 id: INITIAL_MESSAGE_ID + 2.0 * MESSAGE_ID_INCREMENT ,
543544 message: EditorMessageContents :: Update ( UpdateMessageContents {
544545 file_path: file_path_str. clone( ) ,
546+ cursor_position: None ,
547+ scroll_position: None ,
548+ is_re_translation: false ,
545549 contents: Some ( CodeChatForWeb {
546550 metadata: SourceFileMetadata {
547551 mode: "python" . to_string( ) ,
@@ -558,8 +562,6 @@ async fn test_vscode_ide_websocket8() {
558562 } ) ,
559563 version: 0.0 ,
560564 } ) ,
561- cursor_position: None ,
562- scroll_position: None ,
563565 } )
564566 }
565567 ) ;
@@ -650,6 +652,9 @@ async fn test_vscode_ide_websocket7() {
650652 id : INITIAL_IDE_MESSAGE_ID ,
651653 message : EditorMessageContents :: Update ( UpdateMessageContents {
652654 file_path : file_path_str. clone ( ) ,
655+ cursor_position : None ,
656+ scroll_position : None ,
657+ is_re_translation : false ,
653658 contents : Some ( CodeChatForWeb {
654659 metadata : SourceFileMetadata {
655660 mode : "python" . to_string ( ) ,
@@ -660,8 +665,6 @@ async fn test_vscode_ide_websocket7() {
660665 } ) ,
661666 version : 0.0 ,
662667 } ) ,
663- cursor_position : None ,
664- scroll_position : None ,
665668 } ) ,
666669 } ,
667670 )
@@ -672,6 +675,9 @@ async fn test_vscode_ide_websocket7() {
672675 id: INITIAL_IDE_MESSAGE_ID ,
673676 message: EditorMessageContents :: Update ( UpdateMessageContents {
674677 file_path: file_path_str. clone( ) ,
678+ cursor_position: None ,
679+ scroll_position: None ,
680+ is_re_translation: false ,
675681 contents: Some ( CodeChatForWeb {
676682 metadata: SourceFileMetadata {
677683 mode: "python" . to_string( ) ,
@@ -688,8 +694,6 @@ async fn test_vscode_ide_websocket7() {
688694 } ) ,
689695 version: 0.0 ,
690696 } ) ,
691- cursor_position: None ,
692- scroll_position: None ,
693697 } )
694698 }
695699 ) ;
@@ -718,6 +722,9 @@ async fn test_vscode_ide_websocket7() {
718722 id : INITIAL_IDE_MESSAGE_ID + 2.0 * MESSAGE_ID_INCREMENT ,
719723 message : EditorMessageContents :: Update ( UpdateMessageContents {
720724 file_path : file_path_str. clone ( ) ,
725+ cursor_position : None ,
726+ scroll_position : None ,
727+ is_re_translation : false ,
721728 contents : Some ( CodeChatForWeb {
722729 metadata : SourceFileMetadata {
723730 mode : "python" . to_string ( ) ,
@@ -734,8 +741,6 @@ async fn test_vscode_ide_websocket7() {
734741 } ) ,
735742 version : 1.0 ,
736743 } ) ,
737- cursor_position : None ,
738- scroll_position : None ,
739744 } ) ,
740745 } ,
741746 )
@@ -746,6 +751,9 @@ async fn test_vscode_ide_websocket7() {
746751 id: INITIAL_IDE_MESSAGE_ID + 2.0 * MESSAGE_ID_INCREMENT ,
747752 message: EditorMessageContents :: Update ( UpdateMessageContents {
748753 file_path: file_path_str. clone( ) ,
754+ cursor_position: None ,
755+ scroll_position: None ,
756+ is_re_translation: false ,
749757 contents: Some ( CodeChatForWeb {
750758 metadata: SourceFileMetadata {
751759 mode: "python" . to_string( ) ,
@@ -767,8 +775,6 @@ async fn test_vscode_ide_websocket7() {
767775 } ) ,
768776 version: 1.0 ,
769777 } ) ,
770- cursor_position: None ,
771- scroll_position: None ,
772778 } )
773779 }
774780 ) ;
@@ -808,6 +814,9 @@ async fn test_vscode_ide_websocket6() {
808814 id : INITIAL_CLIENT_MESSAGE_ID ,
809815 message : EditorMessageContents :: Update ( UpdateMessageContents {
810816 file_path : file_path. clone ( ) ,
817+ cursor_position : None ,
818+ scroll_position : None ,
819+ is_re_translation : false ,
811820 contents : Some ( CodeChatForWeb {
812821 metadata : SourceFileMetadata {
813822 mode : "python" . to_string ( ) ,
@@ -824,8 +833,6 @@ async fn test_vscode_ide_websocket6() {
824833 } ) ,
825834 version : 0.0 ,
826835 } ) ,
827- cursor_position : None ,
828- scroll_position : None ,
829836 } ) ,
830837 } ,
831838 )
@@ -836,6 +843,9 @@ async fn test_vscode_ide_websocket6() {
836843 id: INITIAL_CLIENT_MESSAGE_ID ,
837844 message: EditorMessageContents :: Update ( UpdateMessageContents {
838845 file_path,
846+ cursor_position: None ,
847+ scroll_position: None ,
848+ is_re_translation: false ,
839849 contents: Some ( CodeChatForWeb {
840850 metadata: SourceFileMetadata {
841851 mode: "python" . to_string( ) ,
@@ -846,8 +856,6 @@ async fn test_vscode_ide_websocket6() {
846856 } ) ,
847857 version: 0.0 ,
848858 } ) ,
849- cursor_position: None ,
850- scroll_position: None ,
851859 } )
852860 }
853861 ) ;
@@ -973,6 +981,9 @@ async fn test_vscode_ide_websocket4() {
973981 id: INITIAL_MESSAGE_ID + 2.0 * MESSAGE_ID_INCREMENT ,
974982 message: EditorMessageContents :: Update ( UpdateMessageContents {
975983 file_path: file_path_str. clone( ) ,
984+ cursor_position: None ,
985+ scroll_position: None ,
986+ is_re_translation: false ,
976987 contents: Some ( CodeChatForWeb {
977988 metadata: SourceFileMetadata {
978989 mode: "python" . to_string( ) ,
@@ -993,8 +1004,6 @@ async fn test_vscode_ide_websocket4() {
9931004 . unwrap( )
9941005 . version,
9951006 } ) ,
996- cursor_position: None ,
997- scroll_position: None ,
9981007 } )
9991008 }
10001009 ) ;
0 commit comments