Update src/services/formatting/smartIndenter.ts

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
Sheetal Nandi
2019-10-28 13:39:17 -07:00
committed by GitHub
parent 2e435ae3b0
commit 0bb1b40b1b
+1 -1
View File
@@ -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