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: offer related information only when supported #905

Merged

Conversation

rgrinberg
Copy link
Member

Make sure the client supports them via the client capabilities

Signed-off-by: Rudi Grinberg me@rgrinberg.com

ps-id: 7969575f-a6aa-4430-a7c0-5f2632484e63

@rgrinberg rgrinberg modified the milestones: 1.14.1, 1.14.2 Nov 5, 2022
Make sure the client supports them via the client capabilities

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: 7969575f-a6aa-4430-a7c0-5f2632484e63
@rgrinberg rgrinberg force-pushed the ps/rr/fix__offer_related_information_only_when_supported branch from 15b8649 to 403a300 Compare November 5, 2022 04:47
@rgrinberg rgrinberg merged commit b42a743 into master Nov 5, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Nov 6, 2022
CHANGES:

## Fixes

- Fix random requests failing after switching documents (ocaml/ocaml-lsp#904, fixes ocaml/ocaml-lsp#898)

- Do not offer related diagnostic information unless the user enables in client
  capabilities (ocaml/ocaml-lsp#905)

- Do not offer diagnostic tags unless the client supports them (ocaml/ocaml-lsp#909)

- Do not attach extra data to diagnostics unless the client supports this
  (ocaml/ocaml-lsp#910)

- Use /bin/sh instead of /bin/bash. This fixes ocamllsp on NixOS
Khady added a commit to Khady/ocaml-lsp that referenced this pull request Nov 7, 2022
* master:
  chore(nix): update flakes (ocaml#915)
  chore(merlin): subrepo to submodule (ocaml#914)
  refactor: add signature_help mli (ocaml#913)
  fix: correctly use merlin's pipeline (ocaml#904)
  feature(lsp): add workspace/diagnostic/refresh (ocaml#910)
  refactor: add mli's to test helpers (ocaml#912)
  fix: client capabilities and diagnostics (ocaml#908)
  fix(lsp): respect diagnostic tag client capabilities (ocaml#909)
  refactor: related information in diagnostics (ocaml#907)
  test: update to show related information (ocaml#906)
  fix: offer related information only when supported (ocaml#905)
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.

None yet

1 participant