File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ import tables
5
5
type
6
6
OptionalSeq * [T] = Option [seq [T]]
7
7
OptionalNode * = Option [JsonNode ]
8
+ uinteger* = range [0 .. (1 shl 31 - 1 )]
8
9
9
10
CancelParams * = ref object of RootObj
10
11
id* : OptionalNode
11
12
12
13
Position * = ref object of RootObj
13
- line* : int # uinteger
14
- character* : int # uinteger
14
+ line* : uinteger
15
+ character* : uinteger
15
16
16
17
Range * = ref object of RootObj
17
18
start* : Position
397
398
398
399
FoldingRangeClientCapabilities * = ref object of RootObj
399
400
dynamicRegistration* : Option [bool ]
400
- rangeLimit* : Option [int ] # uinteger
401
+ rangeLimit* : Option [uinteger]
401
402
lineFoldingOnly* : Option [bool ]
402
403
foldingRangeKind* : Option [FoldingRangeClientCapabilities_foldingRangeKind]
403
404
foldingRange* : Option [FoldingRangeClientCapabilities_foldingRange]
Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ proc format*(
733
733
734
734
let fullRange = Range (
735
735
start: Position (line: 0 , character: 0 ),
736
- `end`: Position (line: int ( uint32 .high) , character: int ( uint32 .high)),
736
+ `end`: Position (line: uinteger .high, character: uinteger .high)
737
737
)
738
738
debug " Formatting document" , uri = uri, formattedText = formattedText
739
739
some TextEdit (range : fullRange, newText: formattedText)
You can’t perform that action at this time.
0 commit comments