File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,10 @@ let main () =
143
143
~pos: (int_of_string line, int_of_string col)
144
144
~debug
145
145
| [_; " documentSymbol" ; path] -> DocumentSymbol. command ~path
146
- | [_; " hover" ; path; line; col; currentFile ; supportsMarkdownLinks] ->
146
+ | [_; " hover" ; path; line; col; _currentFile ; supportsMarkdownLinks] ->
147
147
Commands. hover ~path
148
148
~pos: (int_of_string line, int_of_string col)
149
- ~current File ~ debug
149
+ ~debug
150
150
~supports MarkdownLinks:
151
151
(match supportsMarkdownLinks with
152
152
| "true" -> true
Original file line number Diff line number Diff line change @@ -57,22 +57,13 @@ let codeLens ~path ~debug =
57
57
in
58
58
print_endline result
59
59
60
- let hover ~path ~pos ~currentFile ~ debug ~supportsMarkdownLinks =
60
+ let hover ~path ~pos ~debug ~supportsMarkdownLinks =
61
61
let result =
62
62
match Cmt. loadFullCmtFromPath ~path with
63
63
| None -> Protocol. null
64
64
| Some full -> (
65
65
match References. getLocItem ~full ~pos ~debug with
66
- | None -> (
67
- if debug then
68
- Printf. printf
69
- " Nothing at that position. Now trying to use completion.\n " ;
70
- match
71
- Hover. getHoverViaCompletions ~debug ~path ~pos ~current File
72
- ~for Hover:true ~supports MarkdownLinks
73
- with
74
- | None -> Protocol. null
75
- | Some hover -> hover)
66
+ | None -> Protocol. null
76
67
| Some locItem -> (
77
68
let isModule =
78
69
match locItem.locType with
@@ -393,8 +384,7 @@ let test ~path =
393
384
(" Hover " ^ path ^ " " ^ string_of_int line ^ " :"
394
385
^ string_of_int col);
395
386
let currentFile = createCurrentFile () in
396
- hover ~supports MarkdownLinks:true ~path ~pos: (line, col)
397
- ~current File ~debug: true ;
387
+ hover ~supports MarkdownLinks:true ~path ~pos: (line, col) ~debug: true ;
398
388
Sys. remove currentFile
399
389
| "she" ->
400
390
print_endline
You can’t perform that action at this time.
0 commit comments