Skip to content

Commit

Permalink
use Construct arguments suggested by @voodoos
Browse files Browse the repository at this point in the history
  • Loading branch information
ulugbekna committed Jul 7, 2021
1 parent a6558c5 commit 040446a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocaml-lsp-server/src/compl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ let complete_prefix doc prefix pos =
~f:(completionItem_of_completion_entry ~range ~compl_params)

let construct doc position =
let depth = 1 (* TODO: need to be more flexible with this value? discuss *) in
let command = Query_protocol.Construct (position, Some `Local, Some depth) in
let command = Query_protocol.Construct (position, None, None) in
let open Fiber.O in
let+ r = Document.dispatch doc command in
match r with
Expand Down

0 comments on commit 040446a

Please sign in to comment.