@@ -2258,7 +2258,8 @@ suite('Editor Controller - Indentation Rules', () => {
22582258 '\tif (true) {'
22592259 ] ,
22602260 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2261- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2261+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2262+ editorOpts : { autoIndent : true }
22622263 } , ( model , cursor ) => {
22632264 moveTo ( cursor , 1 , 12 , false ) ;
22642265 assertCursor ( cursor , new Selection ( 1 , 12 , 1 , 12 ) ) ;
@@ -2281,7 +2282,8 @@ suite('Editor Controller - Indentation Rules', () => {
22812282 '\t'
22822283 ] ,
22832284 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2284- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2285+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2286+ editorOpts : { autoIndent : true }
22852287 } , ( model , cursor ) => {
22862288 moveTo ( cursor , 2 , 2 , false ) ;
22872289 assertCursor ( cursor , new Selection ( 2 , 2 , 2 , 2 ) ) ;
@@ -2299,7 +2301,8 @@ suite('Editor Controller - Indentation Rules', () => {
22992301 '\t\t\treturn true'
23002302 ] ,
23012303 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2302- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2304+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2305+ editorOpts : { autoIndent : true }
23032306 } , ( model , cursor ) => {
23042307 moveTo ( cursor , 2 , 15 , false ) ;
23052308 assertCursor ( cursor , new Selection ( 2 , 15 , 2 , 15 ) ) ;
@@ -2318,7 +2321,8 @@ suite('Editor Controller - Indentation Rules', () => {
23182321 '\t\t\t\treturn true'
23192322 ] ,
23202323 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2321- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2324+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2325+ editorOpts : { autoIndent : true }
23222326 } , ( model , cursor ) => {
23232327 moveTo ( cursor , 2 , 14 , false ) ;
23242328 assertCursor ( cursor , new Selection ( 2 , 14 , 2 , 14 ) ) ;
@@ -2374,7 +2378,8 @@ suite('Editor Controller - Indentation Rules', () => {
23742378 '}}'
23752379 ] ,
23762380 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2377- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2381+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2382+ editorOpts : { autoIndent : true }
23782383 } , ( model , cursor ) => {
23792384 moveTo ( cursor , 3 , 13 , false ) ;
23802385 assertCursor ( cursor , new Selection ( 3 , 13 , 3 , 13 ) ) ;
@@ -2509,7 +2514,8 @@ suite('Editor Controller - Indentation Rules', () => {
25092514 '\t}'
25102515 ] ,
25112516 languageIdentifier : mode . getLanguageIdentifier ( ) ,
2512- modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true }
2517+ modelOpts : { insertSpaces : false , tabSize : 4 , detectIndentation : false , defaultEOL : DefaultEndOfLine . LF , trimAutoWhitespace : true } ,
2518+ editorOpts : { autoIndent : true }
25132519 } , ( model , cursor ) => {
25142520 moveTo ( cursor , 5 , 4 , false ) ;
25152521 assertCursor ( cursor , new Selection ( 5 , 4 , 5 , 4 ) ) ;
0 commit comments