Skip to content

Commit a835ee4

Browse files
committed
basic: fix documentations
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 08d8b16 commit a835ee4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

basic.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ func ToLanguageIdentifier(ft string) LanguageIdentifier {
586586
}
587587

588588
// VersionedTextDocumentIdentifier represents an identifier to denote a specific version of a text document.
589+
//
590+
// This information usually flows from the client to the server.
589591
type VersionedTextDocumentIdentifier struct {
590592
TextDocumentIdentifier
591593

@@ -619,6 +621,12 @@ type OptionalVersionedTextDocumentIdentifier struct {
619621

620622
// TextDocumentPositionParams is a parameter literal used in requests to pass a text document and a position
621623
// inside that document.
624+
//
625+
// It is up to the client to decide how a selection is converted into a position when issuing a request for a text
626+
// document.
627+
//
628+
// The client can for example honor or ignore the selection direction to make LSP request consistent with features
629+
// implemented internally.
622630
type TextDocumentPositionParams struct {
623631
// TextDocument is the text document.
624632
TextDocument TextDocumentIdentifier `json:"textDocument"`

0 commit comments

Comments
 (0)