Skip to content

[lsp-server] Off by one error in hover information location #2874

Closed

Description

@DanielPower

graphql-lsp version 3.3.11

When hovering an identifier, there appears to be an off by one error, which results in the first character of an identifier not being hoverable, but the first space after the identifier is hover-able, and recognized as part of the identifier.

I've reproduced this on both VS Code and Neovim.

Neovim

Screen.Recording.2022-11-07.at.12.07.24.PM.mov

VS Code

Screen.Recording.2022-11-08.at.1.41.15.PM.mov

Desired Behavior

Hovering the first character of an identifier should provide hover information.

Activity

  1. added
    lsp-server
    on Nov 8, 2022
  2. acao commented on Nov 10, 2022

    @acao
    Contributor

    @DanielPower thank you! i will take a look at this bug

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglsp-server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions