Skip to content

feat: preserve whitespace when reading from CommandInput#599

Merged
Citymonstret merged 3 commits intofeat/2.0.0/commandinput-suggestionsfrom
feat/2.0.0/commandinput-suggestions-no-eat-space
Dec 29, 2023
Merged

feat: preserve whitespace when reading from CommandInput#599
Citymonstret merged 3 commits intofeat/2.0.0/commandinput-suggestionsfrom
feat/2.0.0/commandinput-suggestions-no-eat-space

Conversation

@Citymonstret
Copy link
Copy Markdown
Member

Suggestions for wrapped Brigadier suggestions are currently a bit broken.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 27, 2023

Test Results

  85 files  ±0    85 suites  ±0   16s ⏱️ -4s
520 tests +6  520 ✔️ +6  0 💤 ±0  0 ±0 
553 runs  +6  553 ✔️ +6  0 💤 ±0  0 ±0 

Results for commit 22a6dfd. ± Comparison against base commit db81523.

♻️ This comment has been updated with latest results.

@Citymonstret Citymonstret force-pushed the feat/2.0.0/commandinput-suggestions-no-eat-space branch 2 times, most recently from 2277104 to fc7a6ea Compare December 27, 2023 16:54
@Citymonstret Citymonstret marked this pull request as ready for review December 27, 2023 17:56
@jpenilla jpenilla added the 2.0.0 label Dec 27, 2023
@Citymonstret Citymonstret force-pushed the feat/2.0.0/commandinput-suggestions-no-eat-space branch from fc7a6ea to 962c44b Compare December 28, 2023 05:36
@Citymonstret Citymonstret force-pushed the feat/2.0.0/commandinput-suggestions-no-eat-space branch from 962c44b to b819154 Compare December 28, 2023 05:40
@jpenilla
Copy link
Copy Markdown
Member

Suggestions for wrapped Brigadier suggestions are currently a bit broken.

Is that still the case or was it resolved with #595

Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
@Citymonstret Citymonstret merged commit 90f7415 into feat/2.0.0/commandinput-suggestions Dec 29, 2023
@Citymonstret Citymonstret deleted the feat/2.0.0/commandinput-suggestions-no-eat-space branch December 29, 2023 07:26
@jpenilla jpenilla added this to the 2.0.0 milestone Dec 30, 2023
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