Skip to content

Commit

Permalink
removing commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nahbee10 committed Oct 2, 2024
1 parent 2488fed commit ea068ae
Showing 1 changed file with 0 additions and 75 deletions.
75 changes: 0 additions & 75 deletions client/modules/IDE/components/Editor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -516,30 +516,6 @@ const Editor = (props) => {
}
};

// const state = EditorState.create({
// doc: file.content,
// extensions: [
// basicSetup,
// javascript(),
// css(),
// hintExtension,
// EditorView.updateListener.of((update) => {
// if (update.docChanged) {
// updateContentDebounced(); // Debounce the changes
// }
// }),
// keymap.of([
// {
// key: 'Enter',
// run: (view) => {
// showHint();
// return true;
// }
// }
// ])
// ]
// });

view.dom.style.fontSize = `${fontSize}px`; // Apply font size

// Attach keydown handler
Expand All @@ -559,57 +535,6 @@ const Editor = (props) => {
};
}, []);

// useEffect(() => {
// initColorPicker();

// const startState = EditorState.create({
// doc: file.content,
// extensions: [
// javascript(),
// autocompletion(),
// linter(myLinterFunction), // Linter extension placeholder
// lintGutter(),
// abbreviationTracker(),
// lineNumbers(), // Line numbers
// highlightActiveLine(), // Highlight active line
// EditorView.lineWrapping, // Line wrapping
// foldGutter(), // Fold gutter
// bracketMatching(), // Match brackets
// closeBrackets(), // Automatically close brackets
// highlightSelectionMatches(), // Highlight search matches
// keymap.of(customKeymap),
// EditorView.updateListener.of((update) => {
// if (update.docChanged) {
// handleEditorChange(); // Ensure changes are handled properly
// }
// })
// ]
// });

// const view = new EditorView({
// state: startState,
// parent: editorRef.current
// });
// viewRef.current = view;

// view.dom.style.fontSize = `${fontSize}px`; // Apply font size

// // Attach keydown handler
// view.dom.addEventListener('keydown', onKeyDown);

// provideController({
// tidyCode,
// showFind,
// showReplace,
// getContent
// });

// return () => {
// view.dom.removeEventListener('keydown', onKeyDown);
// view.destroy();
// };
// }, []);

return (
<section
className={classNames('editor', { 'sidebar--contracted': !isExpanded })}
Expand Down

0 comments on commit ea068ae

Please sign in to comment.