File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,8 @@ func ToLanguageIdentifier(ft string) LanguageIdentifier {
586
586
}
587
587
588
588
// 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.
589
591
type VersionedTextDocumentIdentifier struct {
590
592
TextDocumentIdentifier
591
593
@@ -619,6 +621,12 @@ type OptionalVersionedTextDocumentIdentifier struct {
619
621
620
622
// TextDocumentPositionParams is a parameter literal used in requests to pass a text document and a position
621
623
// 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.
622
630
type TextDocumentPositionParams struct {
623
631
// TextDocument is the text document.
624
632
TextDocument TextDocumentIdentifier `json:"textDocument"`
You can’t perform that action at this time.
0 commit comments