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(ocamllsp): infer intf for closed docs #753

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

rgrinberg
Copy link
Member

This commit fixes a bug when inferring the interface of a module whose
implementation hasn't been opened.

Since the module hasn't been opened by the user, we shouldn't open in
the document store and confuse the dynamic registration subscription
manager. In particular, if there is a promotion pending for the
document, this would wrongly remove the dynamic registration.

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

ps-id: 70ff54c0-ab14-4ed5-82ed-e238173c0203

This commit fixes a bug when inferring the interface of a module whose
implementation hasn't been opened.

Since the module hasn't been opened by the user, we shouldn't open in
the document store and confuse the dynamic registration subscription
manager. In particular, if there is a promotion pending for the
document, this would wrongly remove the dynamic registration.

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

ps-id: 70ff54c0-ab14-4ed5-82ed-e238173c0203
@rgrinberg rgrinberg added this to the 1.12.3 milestone Jun 27, 2022
@rgrinberg rgrinberg requested review from ulugbekna and tatchi June 27, 2022 18:54
@rgrinberg rgrinberg merged commit aa2150b into master Jun 28, 2022
@rgrinberg rgrinberg deleted the ps/rr/fix_ocamllsp___infer_intf_for_closed_docs branch June 28, 2022 18:30
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Jul 7, 2022
CHANGES:

## Fixes

- Fix a bad interaction between inferred interfaces and promotion code actions
  in watch mode (ocaml/ocaml-lsp#753)

- Fix URI parsing (ocaml/ocaml-lsp#739 fixes ocaml/ocaml-lsp#471 and ocaml/ocaml-lsp#459)
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