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

Respect client capabilities #836

Merged
merged 3 commits into from
Aug 17, 2022

Conversation

rgrinberg
Copy link
Member

When offering commands and code actions

@rgrinberg rgrinberg force-pushed the ps/rr/fix_ocamllsp___respect_client_capabilites branch from 859bbbc to d81e648 Compare August 3, 2022 01:12
@rgrinberg rgrinberg force-pushed the ps/rr/fix_ocamllsp___respect_client_capabilites branch from d81e648 to 0ad2dc6 Compare August 17, 2022 05:12
do not display code actions that aren't available to clients without
showDocument support

ps-id: 09AE75CD-265B-4AD4-B1E9-FF5E4451559B
to make sure we can use all these features

ps-id: f9f12c10-f20b-492b-8d66-af1d54c0fa9a
@rgrinberg rgrinberg force-pushed the ps/rr/fix_ocamllsp___respect_client_capabilites branch from 0ad2dc6 to 8a058ba Compare August 17, 2022 06:16
@rgrinberg rgrinberg merged commit f2c8aa3 into master Aug 17, 2022
voodoos added a commit to voodoos/ocaml-lsp that referenced this pull request Sep 19, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Oct 15, 2022
CHANGES:

## Features

- Code action for inlining let bindings within a module or expression. (ocaml/ocaml-lsp#847)

- Tag "unused code" and "deprecated" warnings, allowing clients to better
  display them. (ocaml/ocaml-lsp#848)

- Refresh merlin configuration after every dune build in watch mode (ocaml/ocaml-lsp#853)

## Fixes

- Respect `showDocument` capabilities. Do not offer commands or code actions
  that rely on this request without client support. (ocaml/ocaml-lsp#836)

- Fix signatureHelp on .mll files: avoid "Document.dune" exceptions
voodoos added a commit to voodoos/ocaml-lsp that referenced this pull request Oct 17, 2022
voodoos added a commit to voodoos/ocaml-lsp that referenced this pull request Oct 24, 2022
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.

'ocamllsp: -32601: MethodNotFound' with open/create mli code action in Neovim
1 participant