File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ let hover ~path ~line ~col ~currentFile ~debug =
36
36
| Some ({file} as full ) -> (
37
37
match References. getLocItem ~full ~line ~col with
38
38
| None -> (
39
+ if debug then
40
+ Printf. printf
41
+ " Nothing at that position. Now trying to use completion.\n " ;
39
42
let completions =
40
43
getCompletions ~debug ~path ~pos: (line, col) ~current File
41
44
~for Hover:true
Original file line number Diff line number Diff line change @@ -1345,6 +1345,7 @@ Completable: Cpath Value[this]
1345
1345
}]
1346
1346
1347
1347
Hover tests/src/Completion.res 346:14
1348
+ Nothing at that position. Now trying to use completion.
1348
1349
posCursor:[346:14] posNoWhite:[346:13] Found expr:[346:9->346:23]
1349
1350
JSX <div:[346:9->346:12] name[346:13->346:17]=...[346:18->346:20]> _children:346:21
1350
1351
Completable: Cjsx([div], name, [name])
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Hover tests/src/Fragment.res 6:19
2
2
{"contents": "```rescript\nReact.component<{\"children\": React.element}>\n```\n\n```rescript\ntype component<'props> = componentLike<'props, element>\n```"}
3
3
4
4
Hover tests/src/Fragment.res 9:56
5
+ Nothing at that position. Now trying to use completion.
5
6
posCursor:[9:56] posNoWhite:[9:55] Found expr:[9:10->9:67]
6
7
Pexp_construct :::[9:13->9:67] [9:13->9:67]
7
8
posCursor:[9:56] posNoWhite:[9:55] Found expr:[9:13->9:67]
You can’t perform that action at this time.
0 commit comments