You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lsp-types/src/Language/LSP/Types/Location.hs
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
{-# LANGUAGETemplateHaskell #-}
2
-
{-# LANGUAGEDeriveGeneric #-}
1
+
{-# LANGUAGEDeriveGeneric #-}
2
+
{-# LANGUAGETemplateHaskell #-}
3
3
moduleLanguage.LSP.Types.Locationwhere
4
4
5
5
importControl.DeepSeq
6
6
importData.Aeson.TH
7
7
importData.Hashable
8
-
importGHC.Genericshiding (UInt)
8
+
importGHC.Genericshiding (UInt)
9
9
importLanguage.LSP.Types.Common
10
10
importLanguage.LSP.Types.Uri
11
11
importLanguage.LSP.Types.Utils
@@ -33,8 +33,8 @@ instance Hashable Position
33
33
34
34
dataRange=
35
35
Range
36
-
{_start::Position--^ The range's start position.
37
-
, _end::Position--^ The range's end position.
36
+
{_start::Position--^ The range's start position. (inclusive)
37
+
, _end::Position--^ The range's end position. (exclusive, see: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#range )
38
38
}deriving (Show, Read, Eq, Ord, Generic)
39
39
40
40
instanceNFDataRange
@@ -65,12 +65,12 @@ data LocationLink =
65
65
-- range at the mouse position.
66
66
_originSelectionRange::MaybeRange
67
67
--| The target resource identifier of this link.
68
-
, _targetUri::Uri
68
+
, _targetUri::Uri
69
69
--| The full target range of this link. If the target for example is a
70
70
-- symbol then target range is the range enclosing this symbol not including
71
71
-- leading/trailing whitespace but everything else like comments. This
72
72
-- information is typically used to highlight the range in the editor.
73
-
, _targetRange::Range
73
+
, _targetRange::Range
74
74
--| The range that should be selected and revealed when this link is being
75
75
-- followed, e.g the name of a function. Must be contained by the the
76
76
-- 'targetRange'. See also @DocumentSymbol._range@
0 commit comments