fix(editor): prevent freeze on large JSON long-line expansion (fix #188) by wgqqqqq · Pull Request #190 · GCWing/BitFun

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@wgqqqqq

Copy link Copy Markdown

Collaborator

@wgqqqqq wgqqqqq commented

Mar 18, 2026

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 more expansion 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

@GCWing GCWing merged commit 056d45f into GCWing:main

Mar 19, 2026

4 checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Opening a ~1.2MB json file freezes the app

2 participants

@wgqqqqq @GCWing