Skip to content

[BUG]: Codebook should report diagnostic indexes based on UTF-16 bytes, and not based on graphene clusters to LSP clients #118

@JosephTLyons

Description

@JosephTLyons

Issue Description

Codebook doesn't seem to account for multiple code points

Image Image

Operating System

macOS

Editor

Zed

Codebook Version

No response

Configuration

Steps to Reproduce

  1. Type in text that will trigger a typo
  2. Add a multi-code point emoji before the typo

Expected Behavior

I expected the underline diagnostic to be aligned under the text identified as a typo

Actual Behavior

The underline was offset by one column

Code Sample

✍️ Doog

Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions