module LanguageServer::Protocol::Constant::PositionEncodingKind
A type indicating how positions are encoded, specifically what column offsets mean. A set of predefined position encoding kinds.
Constants
- UTF16
Character offsets count UTF-16 code units.
This is the default and must always be supported by servers
- UTF32
Character offsets count UTF-32 code units.
Implementation note: these are the same as Unicode code points, so this ‘PositionEncodingKind` may also be used for an encoding-agnostic representation of character offsets.
- UTF8
Character offsets count UTF-8 code units (e.g bytes).