Skip to content

Commit 4cee0e4

Browse files
committed
Update Commands.ml
1 parent 7257c8b commit 4cee0e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

analysis/src/Commands.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ let completion ~path ~line ~col ~currentFile =
4040
match NewCompletions.getCompletable ~textOpt ~pos with
4141
| None -> []
4242
| Some (completable, rawOpens) ->
43+
(* Only perform expensive operation if there are completables *)
4344
NewCompletions.computeCompletions ~completable ~pos ~rawOpens ~uri
4445
in
4546
completionItems

0 commit comments

Comments
 (0)