Fixed misspelling in variable name.

This commit is contained in:
Eric Traut 2021-09-25 01:36:07 -07:00
parent 8fc2457543
commit bd734f1c20

View File

@ -1390,9 +1390,9 @@ export function getCallNodeAndActiveParameterIndex(
function isOffsetInsideCallArgs(node: CallNode, offset: number) {
let found = true;
const argmentStart =
const argumentStart =
node.leftExpression.length > 0 ? TextRange.getEnd(node.leftExpression) - 1 : node.leftExpression.start;
const index = tokens.getItemAtPosition(argmentStart);
const index = tokens.getItemAtPosition(argumentStart);
if (index >= 0 && index + 1 < tokens.count) {
const token = tokens.getItemAt(index + 1);
if (token.type === TokenType.OpenParenthesis && insertionOffset < TextRange.getEnd(token)) {