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 completion failing in some parser states #322

Merged
merged 9 commits into from
Aug 12, 2024

Conversation

NeoKaios
Copy link
Contributor

No description provided.

@NeoKaios NeoKaios force-pushed the fix/failing-completion branch 2 times, most recently from 802404e to 3275050 Compare July 26, 2024 15:13
@nberth
Copy link
Collaborator

nberth commented Aug 6, 2024

@NeoKaios I feel removing "semantic" completion on point-wise locations is a bit harsh (as exemplified by the test inputs you needed to change in this PR). I think we can accept some level of "wrong suggestions" in a restricted set of cases if the suggestions are quite accurate "in general".

@NeoKaios NeoKaios force-pushed the fix/failing-completion branch from 02e4239 to c1d49ed Compare August 6, 2024 10:47
test/lsp/lsp_completion.ml Outdated Show resolved Hide resolved
Copy link
Collaborator

@nberth nberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor detail: please amend the "chore" commit to fix the CHANGELOG.

CHANGELOG.md Outdated Show resolved Hide resolved
When skipping folding steps, the folder could set the type to a previous context and not fold over a hidden Any context
Unstring _ into _|_ should be Any not Alphanum
type_at_pos takes the last valid type since there is no recovery after the into
@NeoKaios NeoKaios force-pushed the fix/failing-completion branch from 7502a7f to 46a4ec7 Compare August 9, 2024 10:59
Copy link
Collaborator

@nberth nberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nberth nberth merged commit 15b985a into OCamlPro:master Aug 12, 2024
4 checks passed
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