From dfa441749bf935ba5c3d07a000c44a6203012f56 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 9 Apr 2024 23:16:19 +0530 Subject: [PATCH] fixes: adds expected to have () in the auto-complete for the component functions. --- frontend/src/Editor/CodeEditor/autocompleteExtensionConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/CodeEditor/autocompleteExtensionConfig.js b/frontend/src/Editor/CodeEditor/autocompleteExtensionConfig.js index ab08f79e82..a85238987c 100644 --- a/frontend/src/Editor/CodeEditor/autocompleteExtensionConfig.js +++ b/frontend/src/Editor/CodeEditor/autocompleteExtensionConfig.js @@ -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;