Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support autocompletion of vars when including roles that contain meta/argument_specs.yml #1817

Open
komish opened this issue Feb 11, 2025 · 1 comment
Labels
feature New feature or request

Comments

@komish
Copy link

komish commented Feb 11, 2025

Problem

I don't see autocompletion provided when writing a playbook that includes a role that provides meta/argument_specs.yaml. The argument_specs.yaml provides validation at runtime, but I'd like to see completion for it as well.

Solution

The playbook that includes the role and has vars defined for it should have autocompletion provided by the language server for the included role's vars, assuming the role has provided the spec. This is similar behavior to what we see for module vars.

Alternatives

No response

Additional context

#606 was opened/closed and appears to have the same ask. That issue specifies that this is already supported, but I think (a) there was a miscommunication in what was desired, or (b) there needs to be better documentation about how to use this feature if it's already implemented.

I will note that including meta/argument_specs.yaml does seem to automatically trigger argument_spec_validation, which is great, but I'd like users who pull in the role to have some autocompletion when they're calling it.

@alisonlhart
Copy link
Contributor

This is a good feature suggestion and we have this on our roadmap. This feature is what I understood #1764 to be, but your issue here is what is planned for the future. Thank you for raising that clarification!

@alisonlhart alisonlhart removed the new label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Roadmap
Development

No branches or pull requests

2 participants