mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
indent size 8 based on list startline indentation
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
//// function foo(a?,b?) { b(a); }
|
||||
////
|
||||
//// (foo)(1, function() {/*4_0*/
|
||||
//// (foo)(1, function() {/*4_1*/
|
||||
//// });
|
||||
////
|
||||
//// // No line-breaks in the expression part of the call expression
|
||||
@@ -20,7 +20,7 @@
|
||||
//// // Contains line-breaks in the expression part of the call expression.
|
||||
////
|
||||
//// (
|
||||
//// foo)(1, function () {/*4_1*/
|
||||
//// foo)(1, function () {/*8_4*/
|
||||
//// });
|
||||
//// (foo
|
||||
//// )(1, function () {/*4_3*/
|
||||
@@ -38,14 +38,14 @@
|
||||
//// {/*4_4*/
|
||||
//// });
|
||||
|
||||
for (let i = 0; i < 5; ++i) {
|
||||
for (let i = 1; i < 5; ++i) {
|
||||
goTo.marker(`4_${i}`);
|
||||
edit.insertLine("");
|
||||
verify.indentationIs(4);
|
||||
}
|
||||
|
||||
for (let i = 1; i < 4; ++i) {
|
||||
for (let i = 1; i < 5; ++i) {
|
||||
goTo.marker(`8_${i}`);
|
||||
edit.insertLine("");
|
||||
verify.indentationIs(8);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user