fix(editor): prevent freeze on large JSON long-line expansion (fix #188) by wgqqqqq · Pull Request #190 · GCWing/BitFun
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 63
Merged
GCWing merged 1 commit intoGCWing:mainfrom
Mar 19, 2026Merged
Conversation
Copy link Copy Markdown
Collaborator
wgqqqqq
commented
Mar 18, 2026
wgqqqqq
commented
Summary
- add large-file mode detection based on file size and long-line length
- apply Monaco large-file performance options for heavy files
- disable Monaco LSP hookup for built-in languages and when large-file mode is active
- block long-line
Show moreexpansion in large-file mode (event interception + style fallback)
Why
Opening minified large JSON could still freeze when clicking Show more on overflow text.
This change prevents that expansion path and keeps editor interaction responsive.
Validation
pnpm run build:web- opened
big-test.min.json(~1.45 MB) for manual verification scenario
Closes #188
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment