Skip to content

Commit

Permalink
fix: subtract moduleStart in * visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Singh1 committed Apr 11, 2024
1 parent 2b2ffd3 commit 686f2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/capabilities/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ async function onHover({
if (
"span" in node &&
node.type !== "VariableDeclaration" &&
paramByte < node.span.start &&
paramByte > node.span.end
paramByte < node.span.start - moduleStart &&
paramByte > node.span.end - moduleStart
) {
return false;
}
Expand Down

0 comments on commit 686f2bc

Please sign in to comment.