Repository navigation
GH-1323, GH-1324: Cron Expressions completion proposals and inlay hints - #1357
Conversation
…letion proposals and inlay hints
| List<String> candidates = completionProvider.getCompletionCandidates(project); | ||
|
|
||
| List<String> filteredCandidates = candidates.stream() | ||
| if (completionProvider instanceof CronExpressionCompletionProvider) { |
There was a problem hiding this comment.
Hmm... this bit does not look pretty... Some Cron completions specific bit in the generic AnnotationAttributeCompletionProcessor... Any chance we can push this logic down to the CRON completion provider somehow?
There was a problem hiding this comment.
I would suggest that we just switch the method AnnotationAttributeCompletionProvider.getCompletionCandidates to return labels for the proposals as well and don't add an additional method for that. The AnnotationAttributeCompletionProcessor would then not need to distinguish between provider with and without labels and assume instead that the labels are coming from the providers.
Then, we need to adapt all the various provider implementations to return labels as well, but that should't be a big deal.
There was a problem hiding this comment.
@vudayani Do you want to do those changes in the PR directly or do you want me to do those changes in main first, and then you adapt the PR to that?
There was a problem hiding this comment.
@martinlippert I can do the changes in this PR if it can wait until tomorrow.
There was a problem hiding this comment.
Sure, sounds good. Looking forward to the updated PR then.
|
Looks great, thanks so much for the updated PR. Merged now. |
No description provided.