mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-07 13:29:17 +03:00
Fixed misspelling in variable name.
This commit is contained in:
parent
8fc2457543
commit
bd734f1c20
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user