Skip to content

Commit 0bbb893

Browse files
Copilotdbaeumer
andauthored
Clarify position semantics in textDocument/hover request (#2208)
* Initial plan * Clarify position semantics in textDocument/hover request Co-authored-by: dbaeumer <1931590+dbaeumer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dbaeumer <1931590+dbaeumer@users.noreply.github.com>
1 parent 55159b7 commit 0bbb893

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

_specifications/lsp/3.17/language/hover.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The hover request is sent from the client to the server to request hover information at a given text document position.
44

5+
When the client sends a hover request, the position typically refers to the position immediately to the left of the character being hovered over. For example, when a user hovers over a character `c` at offset `n`, the client typically sends position `n` (the position before the character). However, how servers interpret this position and what hover information they return is language and implementation specific.
6+
57
_Client Capability_:
68
* property name (optional): `textDocument.hover`
79
* property type: `HoverClientCapabilities` defined as follows:

_specifications/lsp/3.18/language/hover.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
The hover request is sent from the client to the server to request hover information at a given text document position.
44

5+
When the client sends a hover request, the position typically refers to the position immediately to the left of the character being hovered over. For example, when a user hovers over a character `c` at offset `n`, the client typically sends position `n` (the position before the character). However, how servers interpret this position and what hover information they return is language and implementation specific.
6+
57
_Client Capability_:
68
* property name (optional): `textDocument.hover`
79
* property type: `HoverClientCapabilities` defined as follows:

0 commit comments

Comments
 (0)