@@ -3471,6 +3471,7 @@ suite('autoClosingPairs', () => {
34713471 const autoCloseColumns = extractSpecialColumns ( model . getLineMaxColumn ( lineNumber ) , autoClosePositions [ i ] ) ;
34723472
34733473 for ( let column = 1 ; column < autoCloseColumns . length ; column ++ ) {
3474+ model . forceTokenization ( lineNumber ) ;
34743475 if ( autoCloseColumns [ column ] === ColumnType . Special1 ) {
34753476 assertType ( model , cursor , lineNumber , column , '(' , '()' , `auto closes @ (${ lineNumber } , ${ column } )` ) ;
34763477 } else {
@@ -3513,6 +3514,7 @@ suite('autoClosingPairs', () => {
35133514 const autoCloseColumns = extractSpecialColumns ( model . getLineMaxColumn ( lineNumber ) , autoClosePositions [ i ] ) ;
35143515
35153516 for ( let column = 1 ; column < autoCloseColumns . length ; column ++ ) {
3517+ model . forceTokenization ( lineNumber ) ;
35163518 if ( autoCloseColumns [ column ] === ColumnType . Special1 ) {
35173519 assertType ( model , cursor , lineNumber , column , '\'' , '\'\'' , `auto closes @ (${ lineNumber } , ${ column } )` ) ;
35183520 } else if ( autoCloseColumns [ column ] === ColumnType . Special2 ) {
@@ -3555,42 +3557,50 @@ suite('autoClosingPairs', () => {
35553557 }
35563558
35573559 // First gif
3560+ model . forceTokenization ( model . getLineCount ( ) ) ;
35583561 typeCharacters ( cursor , 'teste1 = teste\' ok' ) ;
35593562 assert . equal ( model . getLineContent ( 1 ) , 'teste1 = teste\' ok' ) ;
35603563
35613564 cursor . setSelections ( 'test' , [ new Selection ( 1 , 1000 , 1 , 1000 ) ] ) ;
35623565 typeCharacters ( cursor , '\n' ) ;
3566+ model . forceTokenization ( model . getLineCount ( ) ) ;
35633567 typeCharacters ( cursor , 'teste2 = teste \'ok' ) ;
35643568 assert . equal ( model . getLineContent ( 2 ) , 'teste2 = teste \'ok\'' ) ;
35653569
35663570 cursor . setSelections ( 'test' , [ new Selection ( 2 , 1000 , 2 , 1000 ) ] ) ;
35673571 typeCharacters ( cursor , '\n' ) ;
3572+ model . forceTokenization ( model . getLineCount ( ) ) ;
35683573 typeCharacters ( cursor , 'teste3 = teste" ok' ) ;
35693574 assert . equal ( model . getLineContent ( 3 ) , 'teste3 = teste" ok' ) ;
35703575
35713576 cursor . setSelections ( 'test' , [ new Selection ( 3 , 1000 , 3 , 1000 ) ] ) ;
35723577 typeCharacters ( cursor , '\n' ) ;
3578+ model . forceTokenization ( model . getLineCount ( ) ) ;
35733579 typeCharacters ( cursor , 'teste4 = teste "ok' ) ;
35743580 assert . equal ( model . getLineContent ( 4 ) , 'teste4 = teste "ok"' ) ;
35753581
35763582 // Second gif
35773583 cursor . setSelections ( 'test' , [ new Selection ( 4 , 1000 , 4 , 1000 ) ] ) ;
35783584 typeCharacters ( cursor , '\n' ) ;
3585+ model . forceTokenization ( model . getLineCount ( ) ) ;
35793586 typeCharacters ( cursor , 'teste \'' ) ;
35803587 assert . equal ( model . getLineContent ( 5 ) , 'teste \'\'' ) ;
35813588
35823589 cursor . setSelections ( 'test' , [ new Selection ( 5 , 1000 , 5 , 1000 ) ] ) ;
35833590 typeCharacters ( cursor , '\n' ) ;
3591+ model . forceTokenization ( model . getLineCount ( ) ) ;
35843592 typeCharacters ( cursor , 'teste "' ) ;
35853593 assert . equal ( model . getLineContent ( 6 ) , 'teste ""' ) ;
35863594
35873595 cursor . setSelections ( 'test' , [ new Selection ( 6 , 1000 , 6 , 1000 ) ] ) ;
35883596 typeCharacters ( cursor , '\n' ) ;
3597+ model . forceTokenization ( model . getLineCount ( ) ) ;
35893598 typeCharacters ( cursor , 'teste\'' ) ;
35903599 assert . equal ( model . getLineContent ( 7 ) , 'teste\'' ) ;
35913600
35923601 cursor . setSelections ( 'test' , [ new Selection ( 7 , 1000 , 7 , 1000 ) ] ) ;
35933602 typeCharacters ( cursor , '\n' ) ;
3603+ model . forceTokenization ( model . getLineCount ( ) ) ;
35943604 typeCharacters ( cursor , 'teste"' ) ;
35953605 assert . equal ( model . getLineContent ( 8 ) , 'teste"' ) ;
35963606 } ) ;
0 commit comments