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

Code Action for pre-filling required fields #801

Open
radeksimko opened this issue Oct 5, 2021 · 0 comments
Open

Code Action for pre-filling required fields #801

radeksimko opened this issue Oct 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@radeksimko
Copy link
Member

Follow-up to #719


Problem Statement

Users can today introduce a new block into their configuration via completion

2021-08-05 13 02 09

However the block is not considered complete/valid until it has all required attributes and blocks.

This means that users have to either scrolls over a potentially long list of attributes and blocks to add all required ones and/or consult documentation in a separate window.

#719 pre-fills required fields on completion (using the completion LSP method) which mainly solves the problem for new blocks.

Expected User Experience

Block with existing attributes/blocks

A contextual code action would be available to the user to fill any missing required attributes and blocks, similar to gopls:

126799179-dd5a7450-8033-462a-aee3-92b71fa638c9

Proposal

  • provide new quickfix code action associated with the body of a block which has missing required attributes or blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants