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

Make switching to semantic completer work after select ID completer candidate #4208

Merged
merged 1 commit into from Dec 30, 2023

Conversation

bstaletic
Copy link
Collaborator

@bstaletic bstaletic commented Dec 29, 2023

PR Prelude

Thank you for working on YCM! :)

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your PR:

  • I have read and understood YCM's CONTRIBUTING document.
  • I have read and understood YCM's CODE_OF_CONDUCT document.
  • I have included tests for the changes in my PR. If not, I have included a
    rationale for why I haven't.
  • I understand my PR may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Why this change is necessary and useful

[Please explain in detail why the changes in this PR are needed.]


This change is Reviewable

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

Merging #4208 (430ae85) into master (ad9fe2e) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4208      +/-   ##
==========================================
+ Coverage   89.70%   89.79%   +0.09%     
==========================================
  Files          34       34              
  Lines        4419     4420       +1     
==========================================
+ Hits         3964     3969       +5     
+ Misses        455      451       -4     

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

…andidate

To play nice with some other plugins, we only trigger completion if the
cursor has not moved between making a request and displaying the
results.

Previous oversight led to being unable to switch to semantic completion
after selecting an identifier completer candidate that changes the
cursor position.

The fix is to update the last cursor position from which the completion
request was made when the user hits <C-Space>
@bstaletic
Copy link
Collaborator Author

Fixed the tests.

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

@puremourning puremourning added the Ship It! Manual override to merge a PR by maintainer label Dec 30, 2023
Copy link
Contributor

mergify bot commented Dec 30, 2023

Thanks for sending a PR!

@mergify mergify bot merged commit 71166ea into ycm-core:master Dec 30, 2023
12 of 13 checks passed
@bstaletic bstaletic deleted the id_semantic_switch_mess branch December 30, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship It! Manual override to merge a PR by maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants