Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Documentation tool repeating lines #2722

Closed
kroppt opened this issue Aug 31, 2019 · 1 comment
Closed

Documentation tool repeating lines #2722

kroppt opened this issue Aug 31, 2019 · 1 comment

Comments

@kroppt
Copy link

kroppt commented Aug 31, 2019

Steps to Reproduce:

  1. Type the following into a go file:
conn, _ := net.DialTCP("tcp", nil, nil)
conn.Write([]byte("test"))
  1. Hover over conn.Write to see:
    image
  2. Jump to definition to view the documentation:
// Write implements the Conn Write method.
func (c *conn) Write(b []byte) (int, error) {

All go settings are default.

VSCodium About Version: 1.37.1
Commit: 9afbbd903b7b481aa127d4d8d68626397e6a5135
Date: 2019-08-16T10:21:32.989Z
Electron: 4.2.7
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

go version:

$ go version
go version go1.12.9 windows/amd64
@ramya-rao-a
Copy link
Contributor

This issue is being tracked in #2107

This happens when there are multiple functions with the same name, but on different receivers in the same package.
We use go doc to get the documentation, but at this time, we are not aware of which receiver to use.

Some workarounds are:

  • Change your go.docsTool to gogetdoc which is smart enough to figure out the right documentation
  • Or use the language server

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants