#1392: smart completions#1999
Conversation
- Add AutoCompletionRegistry - Add ToolArgumentsProperty - Delegate tool argument completion to ToolCommandlet - Add initial Maven completion entries - Keep default registry empty
Coverage Report for CI Build 27742396915Coverage increased (+0.02%) to 71.299%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions108 previously-covered lines in 6 files lost coverage.
Coverage Stats💛 - Coveralls |
AdemZarrouki
left a comment
There was a problem hiding this comment.
Nice Job. You extended the auto complition for mvn.
|
When testing with GraalVM using ide shell, i typed ide mvn -Dexec.m and then pressed tab but the shell was not responding anymore. @Caylipp can you check the cause of this. Aslo tried to run it in a junit test but the test was running for ever |
…vonfw#1974) Co-authored-by: Jörg Hohwiller <[email protected]>
Co-authored-by: Jörg Hohwiller <[email protected]>
Thanks for pointing this out. |
|
I tested the new fix and the endless loop wasn't present anymore. The only problem is that in the issue its stated that |
- add fix into functions
You’re right, thanks for pointing this out. |
-add comments
|
Also fixed completion for |
AdemZarrouki
left a comment
There was a problem hiding this comment.
Good Job @Caylipp. You fixed the issue. I left a small comment regarding line break in javadoc that need to be removed
699b08e to
f7e0575
Compare
hohwille
left a comment
There was a problem hiding this comment.
@Caylipp thanks for your PR. Looks really nice now. Great work 👍
I have to admit that I do not fully understand the workaround for the = handling.
Is that maybe because = is by default in COMP_WORDBREAKS?
I guess this is for situations where we have --option=val[TAB] and want to get --option=value. So what is by default braking here? Is a space added before or directly after the equals sign?
Then I get at least the compopt -o nospace workaround.
The whitespace issue is not caused by In case of |
…into feature/1392-smart-completions
|
I also noticed one additional edge case while retesting: |
|
I did some debugging on this. For
|
This PR fixes #1392
Implemented changes:
AutoCompletionRegistryfor tool-specific completion candidatesToolArgumentsPropertyfor completing tool argumentsToolArgumentsPropertytoToolCommandletToolCommandletMvnTesting instructions
Please add conscise, understandable instructions on how a reviewer can test/verify the functionality of your contribution here:
Additionally, you can use the end-to-end testing script to test the completion natively in your terminal (#2011).
Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internal