Skip to content

Remove BlockingSuggestionProvider.ConstantStrings#605

Merged
jpenilla merged 1 commit intofeat/2.0.0/commandinput-suggestionsfrom
2/remove-blockingsuggestionprovider-constantstrings
Dec 29, 2023
Merged

Remove BlockingSuggestionProvider.ConstantStrings#605
jpenilla merged 1 commit intofeat/2.0.0/commandinput-suggestionsfrom
2/remove-blockingsuggestionprovider-constantstrings

Conversation

@jpenilla
Copy link
Copy Markdown
Member

No description provided.

@jpenilla jpenilla added the 2.0.0 label Dec 29, 2023
@github-actions
Copy link
Copy Markdown

Test Results

  85 files  ±0    85 suites  ±0   17s ⏱️ +2s
520 tests ±0  520 ✔️ ±0  0 💤 ±0  0 ±0 
553 runs  ±0  553 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 9121634. ± Comparison against base commit c51b28a.

@jpenilla jpenilla merged commit 79f0599 into feat/2.0.0/commandinput-suggestions Dec 29, 2023
@jpenilla jpenilla deleted the 2/remove-blockingsuggestionprovider-constantstrings branch December 29, 2023 08:32
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants