* smartIndenter: Don't indent after control-flow ending statements like `break;` * Fix bug * Fix bug for function after `return`
21 lines
581 B
TypeScript
21 lines
581 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function Foo() {
|
|
//// var x;
|
|
//// switch (x) {
|
|
//// {| "indentation": 8 |}
|
|
//// }
|
|
//// {| "indentation": 4 |}
|
|
//// switch (x) {
|
|
//// {| "indentation": 8 |}
|
|
//// case 1:
|
|
//// {| "indentation": 12 |}
|
|
//// break;
|
|
//// {| "indentation": 8 |} // since we just saw "break"
|
|
//// }
|
|
//// {| "indentation": 4 |}
|
|
////}
|
|
|
|
test.markers().forEach((marker) => {
|
|
verify.indentationAtPositionIs(marker.fileName, marker.position, marker.data.indentation);
|
|
}); |