Repository navigation
fix: Hover docs were offset one position - #3149
Conversation
🦋 Changeset detectedLatest commit: 1d4ea78 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
|
@mskelton thanks for this! can you check that the hover positions for |
|
@acao I tried running the monoco-graphql-webpack example, but hovering didn't display any sort of information, so I'm not exactly sure how to validate it worked/didn't. I noticed the same behavior on main as well, so I'm a little confused. |
|
ohhh it's off by one character not by one line. sorry it took me so long to look closely at this. ok, we don't need to worry as much about the other implementations |
Fixes #2874
The hover docs were off by one position. This was due to autocomplete suggestions and hover docs using the same
getTokenAtPositionfunction. For autocomplete, the behavior of the function was expected since your cursor is after the token you want to get when requesting autocomplete results, but with hover docs you want the cursor at the cursor position.