Open brian-mulier-p opened 6 months ago
@anna-geller @brian-mulier-p I would like to work on this .
Are we targeting Prio 2 as part of this task?
The Prio 2 only has an EE feature, so maybe you can focus on Prio 3? :)
Sure @anna-geller , can you please elaborate these requirements
Prio 3
I have a feeling this might be too complex for new contributors
I have a feeling this might be too complex for new contributors
- if you start typing a pebble function, you could get autocompletion for it https://kestra.io/docs/expressions/function -- this one is not super relevant so you can skip
- same for filters https://kestra.io/docs/expressions/filter
- autocompletion for https://kestra.io/docs/workflow-components/plugin-defaults
Thank you, @anna-geller for the details. I'm currently focused on #2197 and would like to take on this task once I've finished it.
As a follow-up to https://github.com/kestra-io/kestra/issues/3331 we can extend autocompletion.
In the order of priority
Prio 1 - DONE
Add autocompletion for root attributes when in an empty Pebble
you type {{ and then cmd+Space will give you:
Prio 2
{{ namespace.myvar }}
Out of scope for now
Those can be explored later if time is available
Prio 3
{{...}}
and there's a word ahead of the cursorPrio 4
Context aware:
taskrun.parentId
taskrun.value
taskrun.iteration
taskrun.id NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18
taskrun.startDate NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18
taskrun.attemptsCount NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18
parents NEED TO BE CONTEXT AWARE, POSTPONE TO 0.18