-
Notifications
You must be signed in to change notification settings - Fork 138
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
Reference count and go to definition #254
Comments
This isn't supported yet in the latest VSCode extension (v2), but it is another functionality that will be eventually implemented in the language server and - as a result - becomes available in the extension too. I'm not sure how exactly the extension displayed the number of references in the form of annotations - that is something we might still need to implement on the extension side, but most of the work is actually finding and counting the references, which is something that will be done on the server side. For that reason I'm going to transfer this issue over to the LS repo. |
Just to set the expectations right though - it's unlikely we will bring back this functionality for 0.11 or any older Terraform versions, or if we do it would be very limited. This is due to the fact that 0.11 requires entirely different parser since it uses HCL1. |
That's okay, we started the process of migration from 0.11 to 0.12 and are looking for the same UX as we had with 0.11. |
+1 on this feature please |
Hi maintainers, thanks for this language server implementation. Are there any plans on extending the feature set anytime soon to cover go to definition and find usage similar to the plugin for Intellij? It would be amazing to have it as a lot more editors would be able to leverage same feature set :) |
Hi folks,
I am currently trying to implement the reference count as a code lens and aiming for it to be part of the next release. Thanks for your patience. |
@radeksimko Yeah, thanks, checking it right now. However, can't get "Go to References" work. Can it be it works only inside a single file? E.g. I successfully go to a variable definition in a separate file, but clicking "Go to References" on it says "No references found" |
@Chupaka Navigating across files (within the same module) should work in both cases. Can you file a new issue for this one and attach the relevant config(s), please? |
This was implemented as part of hashicorp/vscode-terraform#686 which was shipped in extension version There are further planned improvements in this area - feel free to subscribe to any of these issues
or open a new one if the problem/feature isn't described in any of them. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
In v1.4.0 (TF 0.11) I see reference count for objects and can Cmd+click any interpolation to go to object definition.
After upgrade to the latest version, I can't see any of it anymore:

Are there some settings to bring it back?
The text was updated successfully, but these errors were encountered: