mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Update src/services/formatting/smartIndenter.ts
Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
1 parent
2e435ae3b0
commit
0bb1b40b1b
1 file changed
+1
-1
@@ -327,7 +327,7 @@ namespace ts.formatting {
|
||||
if (isCallOrNewExpression(parent)) {
|
||||
if (!parent.arguments) return false;
|
||||
const currentNode = find(parent.arguments, arg => arg.pos === child.pos);
|
||||
// If its not one of the argument, dont look past this
|
||||
// If it's not one of the arguments, don't look past this
|
||||
if (!currentNode) return false;
|
||||
const currentIndex = parent.arguments.indexOf(currentNode);
|
||||
if (currentIndex === 0) return false; // Can't look at previous node if first
|
||||
|
||||
Reference in new issue
Block a user