Conversation
- Eliminate dual-controller sync that caused lag and cursor issues: PlaygroundPage now uses HighlightingController directly as the single source of truth - Add result caching to JsonSyntaxHighlighter so cursor movements and selection changes skip re-tokenization entirely - Use pre-allocated const TextStyle instances to reduce GC pressure - Line number gutter only rebuilds when line count changes, not on every keystroke - Fix CI concurrency: cancel-in-progress now only applies to PRs, allowing push-to-main workflows to run to completion Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
TextEditingController that overrides buildTextSpan() to return syntax-highlighted spans directly — native cursor, selection and scrolling work out of the box. - **Update project config**: add iOS CocoaPods setup (Podfile + xcconfig includes), documentation cover image, clean up outdated README section, and add .cursor/ to .gitignore. ## Test plan - [x] flutter analyze lib/ — zero issues - [x] flutter test — 111 tests passing - [ ] Manual: open playground, type/edit JSON and confirm cursor, selection and scroll work correctly - [ ] Manual: confirm syntax highlighting colors render (keys blue, strings orange, numbers green)- Change dart analyze from --fatal-infos to --fatal-warnings so info-level hints do not block the pipeline - Remove unnecessary dart:ui import from integration test - Use function declarations instead of variable assignments in test callbacks to satisfy prefer_function_declarations lint - Remove unused component_parser imports from test files Made-with: Cursor
Golden tests depend on platform-specific font rendering and fail on GitHub Actions runners. Use --exclude-tags=golden in the test step. Made-with: Cursor
Add tags: 'golden' to the landing page golden test widget, allowing the CI to skip it with --exclude-tags=golden. Made-with: Cursor
Declare the 'golden' test tag so dart test recognizes it when using --exclude-tags filtering. Made-with: Cursor
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
HighlightingControlleras the sole source of truth — zero sync overhead.JsonSyntaxHighlighternow caches the last result, so cursor movements, selection changes and focus events skip re-tokenization entirely.cancel-in-progressnow only applies to pull requests, preventing push-to-main workflows from being cancelled when multiple merges happen in sequence.Test plan
flutter analyze lib/— zero issuesflutter test— 111 tests passing