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: handle incorrect document types #884

Merged
merged 1 commit into from
Oct 20, 2022

Conversation

rgrinberg
Copy link
Member

instead of crashing, we return no code actions

Signed-off-by: Rudi Grinberg [email protected]

ps-id: 5f932001-91c4-4ab8-97ce-3460e4001c2a

@rgrinberg rgrinberg force-pushed the ps/rr/fix__handle_incorrect_document_types branch from 70ff3aa to bea4dad Compare October 20, 2022 17:58
instead of crashing, we return no code actions

Signed-off-by: Rudi Grinberg <[email protected]>

ps-id: 5f932001-91c4-4ab8-97ce-3460e4001c2a
@rgrinberg rgrinberg force-pushed the ps/rr/fix__handle_incorrect_document_types branch from bea4dad to 6da002c Compare October 20, 2022 21:55
@rgrinberg rgrinberg merged commit 80a98e6 into master Oct 20, 2022
@rgrinberg rgrinberg added this to the 1.14.1 milestone Oct 20, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Oct 21, 2022
CHANGES:

## Fixes

- Fix various server crashes when opening non OCaml/Reason files. Files such as
  dune, cram, etc. would cause the server to crash. (ocaml/ocaml-lsp#884, fixes ocaml/ocaml-lsp#871)

- Ignore unknown tags in merlin configuration to improve forward compatibility
  with Dune. (ocaml/ocaml-lsp#883)
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.

1 participant