From 67ed4cfbdb748aa298a877e4d8c8699a83a4a3ec Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Wed, 2 Apr 2025 14:28:19 +0530 Subject: [PATCH] chore: Removes highlighting from JSEditor (#40031) ## Description Removes the line highlight in JS Editor ## Summary by CodeRabbit - **Refactor** - Simplified the code editor by removing the highlighted lines feature. The editor now presents a cleaner, uniform display while maintaining its existing functionality. --- app/client/src/pages/Editor/JSEditor/Form.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/client/src/pages/Editor/JSEditor/Form.tsx b/app/client/src/pages/Editor/JSEditor/Form.tsx index cf71aa1564..1cc944e022 100644 --- a/app/client/src/pages/Editor/JSEditor/Form.tsx +++ b/app/client/src/pages/Editor/JSEditor/Form.tsx @@ -57,7 +57,6 @@ import { getJSActionOption, type OnUpdateSettingsProps, } from "./JSEditorToolbar"; -import { getHighlightedLines } from "ee/pages/Editor/JSEditor/utils/getHighlightedLines"; interface JSFormProps { jsCollectionData: JSCollectionData; @@ -288,8 +287,6 @@ function JSEditorForm({ } }; - const highlightedLines = getHighlightedLines(currentJSCollection); - useEffect(() => { if (parseErrors.length || isEmpty(jsActions)) { setDisableRunFunctionality(true); @@ -376,7 +373,6 @@ function JSEditorForm({ currentJSCollection={currentJSCollection} customGutter={JSGutters} executing={isExecutingCurrentJSAction} - highlightedLines={highlightedLines} onChange={handleEditorChange} onUpdateSettings={onUpdateSettings} onValueChange={(string) =>