-
Notifications
You must be signed in to change notification settings - Fork 645
References CodeLens doesn't support methods #962
Comments
The If you can take a look at the code there (it is pretty simple) and figure that out, it would be great! If not, then we can use regex from our side and figure out the right position before creating the codelens |
In order to support microsoft/vscode-go#962 this exposes the start/end range of the identifiers for each declaration. In some case (particularly imports) the `ast.Ident` is `nil`, so the identifier range is possibly `nil` too.
I've added a proof-of-concept PR for |
Can you provide a link for your work on We should be able to re-use the
Take your time, the next release is atleast 2 or 3 weeks out :) |
The PR is ramya-rao-a/go-outline#1 (it also shows up on this Github discussion since I referred back to this issue from the PR). |
I'm still learning the VSCode API, but from what I could tell the |
But yes, please let me know if you have any suggestions once you've had a change to take a look at the PR. |
@mgood Your changes to May has been a busy month for me, I wanted to spend more time understanding the parser and how it works. So for now, to fix the current issue with the codelens, I have pushed a fix from the extension's side. See efa448f I'll keep your PR open and circle back to it later as that is the real fix and my fix above is just a band aid on the real problem :) |
Thanks for the fix here. I'll copy your comment about |
The fix is now available in the latest update (0.6.62) |
The new references CodeLens looks really helpful, but as noted in the PR #933 it doesn't yet support methods (which all show 0 references). I think this could be fixed by adding some information in
go-outline
to expose the position of the identifier so I'll open another ticket there with more information.The text was updated successfully, but these errors were encountered: