Skip to content

Commit

Permalink
♻️ Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 authored Jan 29, 2024
1 parent 1444fac commit 43f2a19
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ async function getBuiltinFunctionNextArgument(
// technically another boolean value should be suggested, but it is a better experience
// to actually suggest a wider set of fields/functions
[
finalType === 'boolean' && getFunctionDefinition(nodeArg.name)?.type !== 'builtin'
finalType === 'boolean' && getFunctionDefinition(nodeArg.name)?.builtin
? 'any'
: finalType,
],
Expand Down Expand Up @@ -1013,7 +1013,7 @@ async function getFunctionArgsSuggestions(
? {
...suggestion,
insertText:
hasMoreMandatoryArgs && fnDefinition.type !== 'builtin'
hasMoreMandatoryArgs && !fnDefinition.builtin
? `${suggestion.insertText},`
: suggestion.insertText,
}
Expand All @@ -1024,7 +1024,7 @@ async function getFunctionArgsSuggestions(
return suggestions.map(({ insertText, ...rest }) => ({
...rest,
insertText:
hasMoreMandatoryArgs && fnDefinition.type !== 'builtin' ? `${insertText},` : insertText,
insertText: hasMoreMandatoryArgs && !fnDefinition.builtin ? `${insertText},` : insertText,
}));
}

Expand Down

0 comments on commit 43f2a19

Please sign in to comment.