-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterHelp WantedYou can do thisYou can do this
Milestone
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.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterHelp WantedYou can do thisYou can do this