@@ -14,10 +14,10 @@ export default class FormattingSupport extends AbstractSupport implements Docume
1414
1515 let request = < protocol . FormatRangeRequest > {
1616 FileName : document . fileName ,
17- Line : range . start . line + 1 ,
18- Column : range . start . character + 1 ,
19- EndLine : range . end . line + 1 ,
20- EndColumn : range . end . character + 1
17+ Line : range . start . line ,
18+ Column : range . start . character ,
19+ EndLine : range . end . line ,
20+ EndColumn : range . end . character
2121 } ;
2222
2323 try {
@@ -35,8 +35,8 @@ export default class FormattingSupport extends AbstractSupport implements Docume
3535
3636 let request = < protocol . FormatAfterKeystrokeRequest > {
3737 FileName : document . fileName ,
38- Line : position . line + 1 ,
39- Column : position . character + 1 ,
38+ Line : position . line ,
39+ Column : position . character ,
4040 Character : ch
4141 } ;
4242
@@ -53,7 +53,7 @@ export default class FormattingSupport extends AbstractSupport implements Docume
5353
5454 private static _asEditOptionation ( change : protocol . TextChange ) : TextEdit {
5555 return new TextEdit (
56- new Range ( change . StartLine - 1 , change . StartColumn - 1 , change . EndLine - 1 , change . EndColumn - 1 ) ,
56+ new Range ( change . StartLine , change . StartColumn , change . EndLine , change . EndColumn ) ,
5757 change . NewText ) ;
5858 }
5959}
0 commit comments