Skip to content

Highlights and inlay hints randomly get offset #272

@Komposten

Description

@Komposten

I don't know if this is a bug with the extension, Zed or JDTLS, but it has been happening for months so I figured I might as well report it and hopefully one of you guys here can find where the actual issue is.

Like the issue title says, there is a disconnect between the positions where highlights and inlay hints should be in the code and where Zed displays them.

Here is a screenshot of the parameter name inlay hints to show what I mean:
Image
And what it should look like:
Image

And here for highlights (I have the cursor inside lastName here):
Image

I haven't figured out what it is that triggers this; it just happens every now and then when I edit the code in a file. It also does not happen across the entire file; it starts at some point and then gradually gets worse the further down the file I go from there. If I make any change to the file and save it, the LSP will refresh the information and everything ends up in the right spot again (i.e. the offset issue disappears).

This is quite annoying, although not vital since it disappears after doing an edit and saving.


Zed: v1.6.3+stable.306.601ecb3ee5c16940191818ee7f244837abf6983c (Zed)
OS: Windows 10.0.26100
Memory: 31.7 GiB
Architecture: x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions