File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
web/apps/playground/src/components/EditorPanel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments