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

#357 shell autocompletion of version #371

Merged

Conversation

slskiba
Copy link
Contributor

@slskiba slskiba commented May 29, 2024

Fixes #357.
Search for matching versions in the candidates started at wrong index, i.e. one too far. Therefore the first match was always disregarded.

@slskiba slskiba self-assigned this May 29, 2024
@coveralls
Copy link
Collaborator

coveralls commented May 29, 2024

Pull Request Test Coverage Report for Build 9350666045

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 59.777%

Totals Coverage Status
Change from base Build 9275378992: 0.02%
Covered Lines: 4663
Relevant Lines: 7511

💛 - Coveralls

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@slskiba thanks for this PR. Wow, you seem to be master of debugger finding this tricky thing quickly 👍
Indeed binary search returns the negated but incremented index as proposed position for sorted insert.
As in our case we want to have the actual (positive) index that was "the closest" match to compare with startsWith.
Great job, ready for merge.

@hohwille hohwille merged commit 6ef0204 into devonfw:main Jun 12, 2024
4 checks passed
@hohwille hohwille added this to the release:2024.06.001 milestone Sep 13, 2024
@hohwille hohwille added the reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented.
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

ide shell: autocompletion of version not working propertly
3 participants