Expand description
Conversions between Typst and LSP locations
Enums§
- What counts as “1 character” for string indexing. We should always prefer UTF-8, but support UTF-16 as long as it is standard. For more background on encodings and LSP, try “The bottom emoji breaks rust-analyzer”, a well-written article on the topic.
Functions§
- Convert a Typst position to an LSP position.
- Convert a Typst range to an LSP range.
- Convert an LSP position to a Typst position.
- Convert an LSP range to a Typst range.