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
If the arguments to setPosition are put on a single line, then it works fine.
This seems to format now to below code with VS Code Insiders with default settings.
Activity
rubiesonthesky commentedon Mar 10, 2024
This seems to format now to below code with VS Code Insiders with default settings.