fixes: adds expected to have () in the auto-complete for the component functions.

This commit is contained in:
arpitnath 2024-04-09 23:16:19 +05:30
parent 291bd29ff9
commit dfa441749b

View file

@ -67,7 +67,7 @@ export const generateHints = (hints, totalReferences = 1) => {
if (!hints) return [];
const suggestions = hints.map(({ hint, type }) => {
let displayedHint = type === 'js_method' ? `${hint}()` : hint;
let displayedHint = type === 'js_method' || type === 'Function' ? `${hint}()` : hint;
const maxHintLength = 20;
const hintLength = displayedHint.length;