-
Notifications
You must be signed in to change notification settings - Fork 393
Closed
Labels
branch/2.1.xIssue for a branchIssue for a branchbranch/3.0.xIssue for a branchIssue for a branchbranch/3.1.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/enhancementIs an enhancement requestIs an enhancement request
Milestone
Description
Hello, I am providing in my application an ExtendedFileValueProvider which does not stop if comes a directory (i.e. the completion proposal is not complete). Today I had to extended some classes to do this, and I am wondering if it could be included in spring shell.
The aim is to add complete boolean field in CompletionProposal in order to be able to get this value in CompleterAutoConfiguration.CompleterAdapter#complete :
proposals.stream()
.map(p -> new Candidate(
p.dontQuote() ? p.value() : cpl.emit(p.value()).toString(),
p.displayText(),
p.category(),
p.description(),
null,
null,
true) --> here we can set p.complete() instead of true
)
.forEach(candidates::add);
This way the class implementing ValueProvider can decide if the proposal is complete or not.
Do you think it could be an improvement in spring shell library ?
Thanks a lot !
Metadata
Metadata
Assignees
Labels
branch/2.1.xIssue for a branchIssue for a branchbranch/3.0.xIssue for a branchIssue for a branchbranch/3.1.xIssue for a branchIssue for a branchfor/backportFor backportingFor backportingtype/enhancementIs an enhancement requestIs an enhancement request