2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
//// if /*1*/(true) { }
|
|
|
|
////
|
|
|
|
//// if (true) /*2*/ { /*3*/
|
|
|
|
//// } /*4*/
|
|
|
|
////
|
|
|
|
//// if (1 === /*5*/ 2) { }
|
|
|
|
|
|
|
|
function verifyIndentationAfterNewLine(marker: string, indentation: number): void {
|
|
|
|
goTo.marker(marker);
|
2018-01-12 02:43:27 +01:00
|
|
|
edit.insert("\n");
|
2015-03-02 23:41:44 +01:00
|
|
|
verify.indentationIs(indentation);
|
|
|
|
}
|
|
|
|
|
|
|
|
verifyIndentationAfterNewLine("1", 4);
|
|
|
|
verifyIndentationAfterNewLine("2", 0);
|
|
|
|
verifyIndentationAfterNewLine("3", 4);
|
|
|
|
verifyIndentationAfterNewLine("4", 0);
|
2014-09-12 01:17:31 +02:00
|
|
|
verifyIndentationAfterNewLine("5", 4);
|