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 pId mismatch bug in completion #2681

Merged
merged 1 commit into from
Jun 12, 2023
Merged

Fix pId mismatch bug in completion #2681

merged 1 commit into from
Jun 12, 2023

Conversation

jdneo
Copy link
Contributor

@jdneo jdneo commented Jun 1, 2023

The original implementation might encounter situation that the pId mismatching between proposal and completion item.

When the exception happens and caught. In that case, all the completion proposals will be stored into the response cache. While, only successfully resolved items will be stored.


Another part we can consider is that: is the try-catch block needed here. Looks like the invoked methods will not throw Exceptions in their signatures. Maybe @snjeza can provide more information. Related PR: https://github.com/eclipse/eclipse.jdt.ls/pull/1314/files

Signed-off-by: Sheng Chen <sheche@microsoft.com>
@jdneo jdneo marked this pull request as ready for review June 9, 2023 02:40
@jdneo jdneo changed the title [WIP] Fix pId mismatch bug in completion Fix pId mismatch bug in completion Jun 9, 2023
@jdneo jdneo merged commit dd8c2f7 into master Jun 12, 2023
6 checks passed
@jdneo jdneo deleted the cs/remove-catch branch June 12, 2023 04:43
@jdneo jdneo added this to the End June 2023 milestone Jun 12, 2023
@jdneo jdneo added the bug label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants