MordFustang21 / ide-gopls

Atom integration with the Go language server (gopls)
MIT License
13 stars 5 forks source link

multiline docstrings are not fully shown when hoovering over symbol #1

Closed malkhamis closed 4 years ago

malkhamis commented 4 years ago

When hoovering over a symbol, I only see the very first line of the docstring. The expected behaviour is that I see the full docstring, not just the first line of it.

MordFustang21 commented 4 years ago

Thanks for the issue. This should be able to be turned on by adding the below snippet to your atom config.

gopls:
    hoverKind: "FullDocumentation"
    usePlaceholders: true
    wantCompletionDocumentation: true
    wantUnimportedCompletions: true

Here are some more settings available https://github.com/golang/tools/blob/master/gopls/doc/user.md#settings

malkhamis commented 4 years ago

Thanks you for your response.. I am unsure if you were talking about the config.cson file?

MordFustang21 commented 4 years ago

Sorry, I should have been more specific yes you'd add it to the config.cson file.

malkhamis commented 4 years ago

that didn't seem to work despite trying to reload/close-reopen Atom after doing the suggested changes :(

malkhamis commented 4 years ago

The problem was resolved after updating my local gopls version to master