Skip to content

fix(editor): prevent freeze on large JSON long-line expansion (fix #188)#190

Merged
GCWing merged 1 commit intoGCWing:mainfrom
wgqqqqq:fix/issue-188-large-json-freeze
Mar 19, 2026
Merged

fix(editor): prevent freeze on large JSON long-line expansion (fix #188)#190
GCWing merged 1 commit intoGCWing:mainfrom
wgqqqqq:fix/issue-188-large-json-freeze

Conversation

@wgqqqqq
Copy link
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opening a ~1.2MB json file freezes the app

2 participants