-
Notifications
You must be signed in to change notification settings - Fork 646
Intellisense filters comments from structure definitions; should be optional #1550
Comments
Fair enough. Feel free to send a PR to remove that line. I wouldn't make it optional though. Let's make the change and see if there is user feedback to go back to the old model of not wanting to see the comments By default we use a combination of
|
Yes, I noticed the behavior after trying to circumvent it with go.docsTool == gogetdoc, although, the comment filtering seems to be independent of tool?... I don't know anything about the language server so will look. |
The comment filtering done in this extension is independent of the tool, so you can just remove it. More on language server here: https://github.com/Microsoft/vscode-go#go-language-server-experimental |
OK, concur, removing the filtering will only affect 'gogetdoc'. |
I can't seem to run the tests, even on the unmodified master, and I'm not sure what I'm doing wrong. Either launching from within 'code .' as documented or running 'npm test', I get "TypeError: Path must be a string. Received undefined" I'm sure it's something to do with my environment, but, how to tell what? |
(and is there an appropriate chat forum for such difficulties?) |
Do you have GOPATH set as an env var? The tests dont run if there is no GOPATH set as env var.
You can either ask the question here or on gitter or on the vscode channel in Gophers Slack |
This feature is now available in the latest update (0.6.78) to the Go extension |
I see that https://github.com/Microsoft/vscode-go/blob/master/src/goExtraInfo.ts#L32 intentionally filters lines starting with "\t//", which means comments in structure definitions don't show up on rollover. I think this behavior is undesirable and would like to petition for it to be made optional; the comments are what define the behavior and use of the fields, which is important info, especially in unfamiliar code where Intellisense does the most good.
The text was updated successfully, but these errors were encountered: