You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently local references such as key and val inside of a "for expression" such as [for key, val in var.map: key => val] are not recognised in any context:
completion
hover
semantic highlighting
go-to-definition/references
Attempted Solutions
No response
Proposal
Provide completion for declared key & value references on the RHS of :
Provide hover for key & value references (both LHS and RHS) to help user understand that e.g. map keys are always strings and list/tuple indexes are always numbers
Provide semantic tokens for key & value references (both LHS and RHS)
Provide go-to-definition from key & value references on the RHS of : to LHS declarations
Provide go-to-references from key & value references on the LHS of : to the RHS
Related LSP methods
No response
References
No response
Help Wanted
I'm interested in contributing a fix myself
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Language Server Version
v0.32.6
Problem Statement
Currently local references such as
key
andval
inside of a "for expression" such as[for key, val in var.map: key => val]
are not recognised in any context:Attempted Solutions
No response
Proposal
:
string
s and list/tuple indexes are alwaysnumber
s:
to LHS declarations:
to the RHSRelated LSP methods
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: