Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(go-to-def): report error in response #899

Merged
merged 4 commits into from
Oct 28, 2022
Merged

Conversation

ulugbekna
Copy link
Collaborator

fix(go-to-def): send a response with an error for failing go-to-def/go-to-decl/go-to-type-def
rather than a notification afterwards with the error

also, should definition_query's body be wrapped in Fiber.of_thunk ?

…o-to-decl/go-to-type-def

 rather than sending a notification afterwards with the error
@rgrinberg
Copy link
Member

also, should definition_query's body be wrapped in Fiber.of_thunk ?

Yes it does, good catch. However, I prefer let* () = Fiber.return () in since it doesn't push indentation to the right.

@ulugbekna ulugbekna merged commit 2d140c8 into master Oct 28, 2022
@ulugbekna ulugbekna deleted the raise-on-go-to-def-err branch October 28, 2022 09:39
Khady added a commit to Khady/ocaml-lsp that referenced this pull request Nov 4, 2022
* master:
  fix(go-to-def): report error in response (ocaml#899)
  Update readme (ocaml#895)
  chore(nix): update flakes and dune-release (ocaml#894)
  chore: remove ocamlformat-rpc (ocaml#892)
  chore(nix): pass opam-repository and nixpkgs (ocaml#893)
  chore: unvendor ocamlc-loc (ocaml#869)
  fix: merlin document safety (ocaml#890)
  chore: more precise CHANGES (ocaml#889)
  fix: diagnostics on non dune files (ocaml#887)
  refactor: remove Document.is_merlin (ocaml#888)
  fix: symbols in non merlin docs (ocaml#886)
  refactor: style tweaks in document_symbol (ocaml#885)
  fix: handle incorrect document types (ocaml#884)
  Ignore unknown config tags (ocaml#883)
  Make sure nodejs packages required are installed
  chore: prepare 1.14.0
  Don't let opam ask when not needed
  Allow copy-and-paste of contributing instructions
  Add code action for inlining (ocaml#847)
  Add note about protocol extensions to the readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants