-
Notifications
You must be signed in to change notification settings - Fork 645
Build tags breaks go to definition and other features #1024
Comments
@inancgumus Do you have the language server turned on? |
Do you mean this? If so, I'll try it. What do you think about why this happens when I add a build tag? Even because of the lang-server. Because, it works w/out build tags. |
We have 3 different ways of providing the definition information
I was trying to see which one of the above categories does your scenario fall into. I can repro this issue in the second and third case but not the first. |
This makes a lot of sense. Feel free to file an issue at github.com/zmb3/gogetdoc for build tag support and I will look to add a way to provide build tags to the tool.
In the first case, how are you actually getting definition information? I wasn't aware that |
@zmb3 its When I added the setting to choose between default implementation (godef + godoc) and gogetdoc, I couldnt come up with a better name than |
Logged an issue for gogetdoc and the language server and closing this issue |
Re-opening to absorb the changes done in gogetdoc |
@ramya-rao-a I couldn't see the absorbed changes from gogetdoc? |
I am yet to release an update (should be out in the next few days). |
|
@ramya-rao-a That's perfect, thanks! |
When I add a build tag on top of a file, vscode-go go to definition and mouse over peak functionality breaks.
When I remove it, it works again.
See this:
The text was updated successfully, but these errors were encountered: