feat: preserve whitespace when reading from CommandInput#599
Merged
Citymonstret merged 3 commits intofeat/2.0.0/commandinput-suggestionsfrom Dec 29, 2023
Conversation
2277104 to
fc7a6ea
Compare
fc7a6ea to
962c44b
Compare
962c44b to
b819154
Compare
jpenilla
reviewed
Dec 28, 2023
cloud-core/src/main/java/cloud/commandframework/CommandTree.java
Outdated
Show resolved
Hide resolved
jpenilla
reviewed
Dec 28, 2023
cloud-core/src/main/java/cloud/commandframework/CommandTree.java
Outdated
Show resolved
Hide resolved
Member
Is that still the case or was it resolved with #595 |
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
3 tasks
jpenilla
added a commit
that referenced
this pull request
Dec 30, 2023
* feat(core): don't use requested argument count for suggestions Instead of relying on the parser to tell us how many arguments it wants, we just check if it's able to consume all the input. * feat: make suggestion providers accept CommandInput * feat: allow `@Suggestions` to accept `CommandInput` * chore: update `SuggestionProvider` JavaDoc * feat: add test for a multi-token-consuming parser * Correctly map Brigadier suggestions to cloud (#595) cloud expects the suggestion to be a replacement for the entire argument, use Brigadier's range information to meet that requirement. * feat: preserve whitespace when reading from CommandInput (#599) * fix: don't preemptively switch component for aggregate suggestions * Remove BlockingSuggestionProvider.ConstantStrings (#605) * Remove ArgumentParser#getRequestedArgumentCount (#607) * remove unnecessary future chaining this is not needed after the extraction of aggregate suggestion logic --------- Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Suggestions for wrapped Brigadier suggestions are currently a bit broken.