Skip to content

Commit

Permalink
Merge pull request #3 from voodoos/search_type_vds
Browse files Browse the repository at this point in the history
Catch request errors
  • Loading branch information
PizieDust authored Oct 29, 2024
2 parents 2525214 + 742f06a commit 7c78b0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extension_commands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ module Search_by_type = struct
client
Type_search.request
(Type_search.make ~uri ~position ~limit ~query ~with_doc ()))
|> Promise.catch ~rejected:(fun _ -> Promise.return [])

let input_box =
(* Re-using the same instance of the input box allows us to remember the
Expand Down

0 comments on commit 7c78b0f

Please sign in to comment.