@@ -8,7 +8,7 @@ describe('provideDocumentRangeFormattingEdits', () => {
88 const selection = createRange ( 1 , 5 ) ;
99 const edits = [ createTextEdit ( 0 , 5 , '_BCDE' ) ] ;
1010 const result = restrictFormattingEditsToRange ( document , selection , edits , createTextEdit ) ;
11- expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"0BCDE5 "` ) ;
11+ expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"_BCDE5 "` ) ;
1212 } ) ;
1313
1414 test ( 'keeps indent when edits start on previous line' , ( ) => {
@@ -89,7 +89,7 @@ describe('provideDocumentRangeFormattingEdits', () => {
8989 const selection = createRange ( 1 , 5 ) ; // select "bcde"
9090 const edits = [ createTextEdit ( 0 , 6 , 'ab' ) ] ; // replace all with just "ab"
9191 const result = restrictFormattingEditsToRange ( document , selection , edits , createTextEdit ) ;
92- expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"af "` ) ;
92+ expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"ab "` ) ;
9393 } ) ;
9494
9595 test ( 'handles insertion where newText is longer than oldText' , ( ) => {
@@ -164,7 +164,7 @@ describe('provideDocumentRangeFormattingEdits', () => {
164164 const selection = createRange ( 1 , 3 ) ; // select "好世"
165165 const edits = [ createTextEdit ( 0 , 4 , '你好朋友' ) ] ;
166166 const result = restrictFormattingEditsToRange ( document , selection , edits , createTextEdit ) ;
167- expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"你好朋界 "` ) ;
167+ expect ( applyEdits ( document , result ) ) . toMatchInlineSnapshot ( `"你好朋友 "` ) ;
168168 } ) ;
169169
170170 test ( 'handles overlapStart equals overlapEnd' , ( ) => {
0 commit comments