Skip to content

Specify unit of column offsets #91

Closed

Description

Forgive me if I missed it, but I couldn't see a specification for the values of column offsets.

Examples:

  • Breakpoint locations
  • Stack trace locations
  • Completion request (assuming the text item is utf-8 encoded, what does the column items count ? bytes? or codepoints ? ).

I realise with LSP there is a bit of a fiasco with it being specified as UTF16 code units, is that also the assumption here?

Activity

  1. weinand commented on Jan 20, 2020

    @weinand
    Contributor

    Today columns offsets are based on a UTF-16 string representation.
    But we are planning to make this negotiable via DAP capabilities.

  2. puremourning commented on Jan 20, 2020

    @puremourning
    ContributorAuthor

    So they are like LSP; UTF-8 code units?

  3. weinand commented on Jan 22, 2020

    @weinand
    Contributor

    No, LSP is based on a UTF-16 string representation which means that it uses 16-bit code units.
    And DAP uses the same.

  4. puremourning commented on Jan 22, 2020

    @puremourning
    ContributorAuthor

    Sorry yes I typod I mean utf 16 code units.

    Thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

clarification

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions