Skip to content

Bad support for emoji #749

Description

@sumneko

see https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocuments
The offsets should be based on a UTF-16 string representation, however this extension used UTF-8.
The length of emoji in UTF-16 is 2 while in UTF-8 is 1, which makes incorrect offsets calc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions