Skip to content

Commit 01449d3

Browse files
committed
forzing options
1 parent ef3ba48 commit 01449d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

web/apps/playground/src/components/EditorPanel/EditorPanel.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ export const EditorPanel = ({ editorWidth }: { editorWidth: number }) => {
5454
return {
5555
...editorOptions,
5656
// Disable expensive features for large documents
57-
lineNumbers: !isLargeDocument, // Line numbers are VERY expensive!
58-
foldGutter: !isLargeDocument, // Code folding gutter
59-
gutters: isLargeDocument ? [] : ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
57+
lineNumbers: false, // Line numbers are VERY expensive!
58+
foldGutter: false, // Code folding gutter
59+
gutters: [],
6060

6161
// More aggressive optimization for very large documents
62-
viewportMargin: isVeryLargeDocument ? 5 : 10, // Smaller buffer for huge docs
63-
theme: isVeryLargeDocument ? "default" : editorOptions.theme, // Simpler theme
62+
viewportMargin: 5, // Smaller buffer for huge docs
63+
theme: "default" , // Simpler theme
6464
};
6565
}, [lineCount]);
6666

0 commit comments

Comments
 (0)