next.js
Be defensive rendering code frames
#85592
Open

Be defensive rendering code frames #85592

lukesandberg wants to merge 30 commits into canary from code_frame_defence
lukesandberg
ijjk ijjk added created-by: Turbopack team
ijjk ijjk added type: next
lukesandberg
vercel
vercel commented on 2025-10-30
ijjk
ijjk
lukesandberg lukesandberg changed the base branch from canary to graphite-base/85592 51 days ago
lukesandberg lukesandberg force pushed from 4e0b90c4 to 8340fbf1 51 days ago
ijjk ijjk added Turbopack
lukesandberg lukesandberg changed the base branch from graphite-base/85592 to sync_bindings 51 days ago
vercel
vercel commented on 2025-11-05
lukesandberg lukesandberg force pushed from 8340fbf1 to 6fdfcca9 50 days ago
vercel
vercel commented on 2025-11-07
lukesandberg lukesandberg force pushed from 6fdfcca9 to cad53a67 49 days ago
lukesandberg lukesandberg force pushed from cad53a67 to fb04eab3 49 days ago
lukesandberg lukesandberg force pushed from fb04eab3 to bb9cbad9 49 days ago
lukesandberg lukesandberg force pushed from bb9cbad9 to 68dbfdfa 49 days ago
lukesandberg lukesandberg force pushed from 68dbfdfa to fee0d1ae 49 days ago
lukesandberg lukesandberg force pushed from fee0d1ae to ae5325c6 49 days ago
lukesandberg lukesandberg changed the base branch from sync_bindings to graphite-base/85592 48 days ago
lukesandberg Be defensive rendering code frames
725bef9f
lukesandberg Add next-code-frame crate with core rendering logic
1563ca66
lukesandberg Fix multiline error markers and add column validation tests
538cc95a
lukesandberg Add spanning markers for multiline errors
8f4e827a
lukesandberg Simplify marker rendering logic with upfront normalization
67a350f7
lukesandberg Simplify marker column calculation with saturating arithmetic
9ec6a8c8
lukesandberg Optimize repeated character output to avoid allocations
d7a6dbef
lukesandberg Extract repeat_char_into helper for efficient character repetition
a244a43c
lukesandberg Apply clippy suggestions for idiomatic Rust
12045752
lukesandberg Fix some more clippy issues
0c5a4a51
lukesandberg Extract helper functions for line truncation and marker calculation
427ae1c3
lukesandberg Clarify end_column semantics with detailed comments
7dcd5e56
lukesandberg Convert code frame API to nested Location structure
6ece5d4c
lukesandberg Migrate tests to use insta snapshot testing
873d84b9
lukesandberg use inline snapshots
fa682058
lukesandberg Implement Phase 4: Syntax highlighting architecture with OXC
d630d5be
lukesandberg Phase 4: Fix swc_ecma_lexer import errors
d45da754
lukesandberg Phase 4: Add syntax highlighting tests and fix BytePos offset
e861779c
lukesandberg Phase 4: Integrate syntax highlighting into code frame rendering
0f9bf704
lukesandberg Add syntax highlighting demo example
b4c11c57
lukesandberg Add comments and punctuation highlighting matching Babel
0838c8eb
lukesandberg Add comprehensive syntax highlighting demo
597c3d73
lukesandberg Move strip_ansi_codes to test module and enable highlighting in all t…
125dbafe
lukesandberg Refactor highlighting to use TokenAndSpan.had_line_break and simplify…
2376fe2a
lukesandberg Optimize highlighting: use had_line_break and line_bounds API
6d919d6e
lukesandberg Optimize highlight.rs to only produce markers for visible lines
7006eb02
lukesandberg Add NAPI bindings for next-code-frame
babdb85e
lukesandberg Fix the napi bindings and support wasm as well.
814b58d6
lukesandberg more async hacks
8e9cbdd3
lukesandberg lukesandberg force pushed from ae5325c6 to 5fc076fc 48 days ago
graphite-app graphite-app changed the base branch from graphite-base/85592 to canary 48 days ago
lukesandberg Make code frame rendering synchronous
e8d5fc3b
lukesandberg lukesandberg force pushed from 5fc076fc to e8d5fc3b 48 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone