Go-to-definition/go-to-references for count.index
/count
#1093
Labels
enhancement
New feature or request
textDocument/declaration
textDocument/definition
textDocument/references
Milestone
Background
As part of implementing #860 in hashicorp/hcl-lang#134 we took a shortcut and decided not to treat
count.index
as an actual reference origin and similarly not treatcount
attribute as a target.This has some implications on the UX and some future work
Go To Definition
While the benefit isn't as obvious in a simple and short config, there are cases where a module or a resource may not fit on the screen. Secondly, as a user I'd just expect "go-to-definition" to always work for any reference, if that reference points somewhere in the code.
Go To References
Similar as above, there can be a number of
count.index
references and it would be reasonable to expect "go-to-references" to just work in that context.Config Resolution
There are features which will rely on our ability to resolve references within the config, for example:
Proposal
TODO
The text was updated successfully, but these errors were encountered: