chore: Removes highlighting from JSEditor (#40031)

## Description

Removes the line highlight in JS Editor

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## 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.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Hetu Nandu 2025-04-02 14:28:19 +05:30 committed by GitHub
parent 6c69d8ddf0
commit 67ed4cfbdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) =>