@@ -615,7 +615,7 @@ suite('TextModel.getLineIndentGuide', () => {
615615 [ 1 , 3 , 4 , 2 , ' A' ] ,
616616 [ 2 , 4 , 4 , 3 , ' A' ] ,
617617 [ 3 , 4 , 4 , 3 , ' A' ] ,
618- [ 0 , 2 , 4 , 1 , 'A' ] , // TODO => too big of a difference with the line above?
618+ [ 0 , 5 , 5 , 0 , 'A' ] ,
619619 ] , 2 ) ;
620620 } ) ;
621621
@@ -659,27 +659,27 @@ suite('TextModel.getLineIndentGuide', () => {
659659
660660 test ( 'getLineIndentGuide Whitespace' , ( ) => {
661661 assertIndentGuides ( [
662- [ 0 , 1 , 1 , 0 , 'class A {' ] , // TODO => the next one is not working here
662+ [ 0 , 2 , 7 , 1 , 'class A {' ] ,
663663 [ 1 , 2 , 7 , 1 , '' ] ,
664- [ 1 , 2 , 7 , 1 , ' void foo() {' ] , // TODO => also not working here
665- [ 2 , 4 , 5 , 2 , ' ' ] ,
666- [ 3 , 5 , 5 , 3 , ' return 1;' ] ,
664+ [ 1 , 4 , 5 , 2 , ' void foo() {' ] ,
665+ [ 2 , 4 , 5 , 2 , ' ' ] ,
666+ [ 2 , 4 , 5 , 2 , ' return 1;' ] ,
667667 [ 1 , 4 , 5 , 2 , ' }' ] ,
668668 [ 1 , 2 , 7 , 1 , ' ' ] ,
669- [ 0 , 8 , 8 , 0 , '}' ]
669+ [ 0 , 2 , 7 , 1 , '}' ]
670670 ] , 2 ) ;
671671 } ) ;
672672
673673 test ( 'getLineIndentGuide Tabs' , ( ) => {
674674 assertIndentGuides ( [
675- [ 0 , 1 , 1 , 0 , 'class A {' ] , // TODO => not working here
675+ [ 0 , 2 , 7 , 1 , 'class A {' ] ,
676676 [ 1 , 2 , 7 , 1 , '\t\t' ] ,
677677 [ 1 , 4 , 5 , 2 , '\tvoid foo() {' ] ,
678678 [ 2 , 4 , 5 , 2 , '\t \t//hello' ] ,
679679 [ 2 , 4 , 5 , 2 , '\t return 2;' ] ,
680680 [ 1 , 4 , 5 , 2 , ' \t}' ] ,
681681 [ 1 , 2 , 7 , 1 , ' ' ] ,
682- [ 0 , 8 , 8 , 0 , '}' ]
682+ [ 0 , 2 , 7 , 1 , '}' ]
683683 ] , 4 ) ;
684684 } ) ;
685685
@@ -721,7 +721,7 @@ suite('TextModel.getLineIndentGuide', () => {
721721 [ 2 , 3 , 5 , 2 , ' - bla' ] ,
722722 [ 2 , 5 , 5 , 3 , ' - length:' ] ,
723723 [ 3 , 5 , 5 , 3 , ' max: 255' ] ,
724- [ 0 , 2 , 5 , 1 , 'getters:' ]
724+ [ 0 , 6 , 6 , 0 , 'getters:' ]
725725 ] , 4 ) ;
726726 } ) ;
727727
@@ -733,7 +733,7 @@ suite('TextModel.getLineIndentGuide', () => {
733733 [ 3 , 4 , 4 , 3 , '\t\t\treturn 1;' ] ,
734734 [ 2 , 6 , 6 , 3 , '\t\tcase 2:' ] ,
735735 [ 3 , 6 , 6 , 3 , '\t\t\treturn 2;' ] ,
736- [ 1 , 3 , 6 , 2 , '\t}' ] ,
736+ [ 1 , 2 , 7 , 1 , '\t}' ] ,
737737 [ 0 , 2 , 7 , 1 , '}' ]
738738 ] , 4 ) ;
739739 } ) ;
@@ -742,7 +742,7 @@ suite('TextModel.getLineIndentGuide', () => {
742742 assertIndentGuides ( [
743743 [ 2 , 2 , 2 , 3 , '\t\t.bla' ] ,
744744 [ 3 , 2 , 2 , 3 , '\t\t\tlabel(for)' ] ,
745- [ 0 , 1 , 2 , 1 , 'include script' ]
745+ [ 0 , 3 , 3 , 0 , 'include script' ]
746746 ] , 4 ) ;
747747 } ) ;
748748
0 commit comments