Idea detail
reference_underline_syntax_align
reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:219
block
done
Summary
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.
Navigation
Attributes
| Key | Value |
|---|---|
| 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 |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | non_web_reference_navigation | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | reference_underline_syntax_align |
| references | aliased_from_import_ctrl_click | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | reference_underline_syntax_align |
| references | local_symbolic_analysis | reqlan rq/indexer/indexer.rq | reference_underline_syntax_align |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…