Printable idea sheet
reference_underline_syntax_align
reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:219
Katz 0.125
Idea document-link and error underlines must cover the same UTF-16 range as the
syntax token ( Langium `$refNode` / semantic token ), including when non-ASCII text
appears earlier in the file.
Native extract spans are UTF-8 byte offsets
( local_symbolic_analysis ); LSP `Position.character`
is UTF-16. Convert before `positionAt` so the underline does not drift off the token.
Related: non_web_reference_navigation, reference_document_links,
unresolved_reference_diagnostics, aliased_from_import_ctrl_click.
- implementation
- reqlan-utf8-lsp-offset.ts, reqlan-local-symbolic-links.ts, reqlan-outbound-presentation.ts, types.rs
- status
- done
- tests
- utf8-lsp-offset.test.ts, local-symbolic-links.test.ts:idea underlines match syntax tokens after non-ASCII text, local_symbolic.rs:analyze_local_symbolic_source_offsets_are_utf8_bytes
Interactive page: reference_underline_syntax_align