diff --git a/client/utils/contextAwareHinter.js b/client/utils/contextAwareHinter.js index 1562424e0b..1a8c86b3cd 100644 --- a/client/utils/contextAwareHinter.js +++ b/client/utils/contextAwareHinter.js @@ -262,15 +262,17 @@ export default function contextAwareHinter(context, { hints = [] } = {}) { (!scopeToDeclaredVarsMap[currentContext]?.[varName] && scopeToDeclaredVarsMap.global?.[varName] === 'fun'); - return buildVarOrFunctionOption({ - name: varName, - isFunc, - userDefinedFunctionMetadata, - blacklist, - range: wordInfo, + return buildVarOrFunctionOption( + { + name: varName, + isFunc, + userDefinedFunctionMetadata, + blacklist, + range: wordInfo + }, state, pos - }); + ); }); const globalOptions = hints