gocode
gocode copied to clipboard
Feature Request: Include documentation info if avaliable
If you are autocompleting a function for example, and there are two or more options, documentation about the function could be shown to the user.
#83
Yeah, issue #83 explains it all. In summary:
- Gocode will not provide this feature as it requires parsing source code instead of archive files. For gocode it's faster to parse archive files as it doesn't pull unnecessary dependencies.
- It's however possible to provide a semi-accurate info about an expression under the cursor using gocode. Mostly what is a type of the expression and a package it comes from.
- I'm not interested in that feature and I have a plenty of other open source projects I'm always working on. Basically I'll work on what is a priority to me. It's typically defined by my interest or bug fix urgency.
- But I did the example code here: https://github.com/nsf/gocode/commit/64791d9e7b7e4322996. It can be used as a starting point for implementing such feature.
- So far no one did anything.
- I personally see that features as a separate daemon/service which uses gocode to retrieve the info about expression under the cursor.
It's not a super hard feature to add, it just takes some effort. You need to implement it and make sure it works everywhere, you need to provide at least a couple of integration plugins as an example. And you need to be ready to maintain it your whole life and giving answers to people who have questions about it. As simple as that. :)