Skip to content

Commit

Permalink
fix(lsp): Always respond to hover request (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer authored Jun 13, 2022
1 parent 8fe8247 commit fb947b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/language_server/hover.re
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ let process =
params: RequestParams.t,
) => {
switch (Hashtbl.find_opt(compiled_code, params.text_document.uri)) {
| None => ()
| None => send_no_result(~id)
| Some({program, sourcetree}) =>
let results = Sourcetree.query(params.position, sourcetree);
switch (results) {
Expand Down

0 comments on commit fb947b5

Please sign in to comment.