Closed
Description
I've seen a number of indentation related bugs floating around but none quite like this. Not sure if this is fixed by #13574.
TypeScript Version: 2.2.1
Explanation
public async setPosition(path: Path, col: Col,
cursorOptions?: CursorOptions) {
await this._setPath(path);
await this.setCol(col, cursorOptions);
}
public async setPath(path: Path, cursorOptions?: CursorOptions) {
await this._setPath(path);
await this._fromMoveCol(cursorOptions);
}
gets autoformatted to
public async setPosition(path: Path, col: Col,
cursorOptions?: CursorOptions) {
await this._setPath(path);
await this.setCol(col, cursorOptions);
}
public async setPath(path: Path, cursorOptions?: CursorOptions) {
await this._setPath(path);
await this._fromMoveCol(cursorOptions);
}
If the arguments to setPosition are put on a single line, then it works fine.