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

Consider providing hover data for map keys #1223

Open
radeksimko opened this issue Mar 23, 2023 · 0 comments
Open

Consider providing hover data for map keys #1223

radeksimko opened this issue Mar 23, 2023 · 0 comments
Labels
enhancement New feature or request textDocument/hover

Comments

@radeksimko
Copy link
Member

Context

As part of #496 and hashicorp/hcl-lang#199 in particular, it was decided to not provide any hover data for map items, except for the value/expression. This is in contrast to what we do for objects.

It is unclear whether this [lack of] data is actually useful to users.

object

2023-03-23 09 43 15

map

2023-03-23 09 42 14

Proposal

We could provide data which either represents the whole map, i.e. the same we provide when hovering over the empty space or {} braces
Screenshot 2023-03-23 at 09 44 31
or treat the map key similarly to object attribute.

@radeksimko radeksimko added enhancement New feature or request textDocument/hover labels Mar 23, 2023
@radeksimko radeksimko changed the title Consider providing hover data for map items Consider providing hover data for map keys Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request textDocument/hover
Projects
None yet
Development

No branches or pull requests

1 participant