This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 646
Autocompletion of current function doesn't happen in Godoc comment #1291
Comments
There are multiple layers at play here
One solution I have in mind is to invoke gocode for line comments if Or we will have to introduce a new setting just to enable suggestions inside comments Thoughts? |
That sounds like a good solution. I didn't know about the `editor.quickSuggestions` setting, thanks.
…On 19 October 2017 at 20:45:58, Ramya Rao ***@***.***) wrote:
There are multiple layers at play here
1. Completions do not appear as you type when inside comments. This is a VS Code feature.
You can tweak this by editing the `editor.quickSuggestions` setting
2. When you do force a autocompletion, the Go extension intentionally does not invoke
`gocode` for suggestions when typing inside a line comment as it was considered as noise
3. Funnily `gocode` does get invoked when you are inside a block comment. This is because
there was no simple way of figuring out the start and end of the block comment without parsing
the whole file contents
One solution I have in mind is to invoke gocode for line comments if `editor.quickSuggestions`
supported comments. i.e if `editor.quickSuggestions` was set to `true` or `editor.quickSuggestions.comments`
was set to `true`, then the Go extension will return suggestions when inside comments.
Or we will have to introduce a new setting just to enable suggestions inside comments
Thoughts?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#1291 (comment)
|
@atombender 27197ae This is my solution, but i thing it is useless now😥 |
Closing this in favor of #1005 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Say I have this:
I expect code completion to automatically suggest
SetThing
for me. If I typeSetT
, nothing happens. If hit cmd-space to force autocompletion, I might getSetThing
(or something else starting withSetT
), but it's a textual autocompletion, not a code completion.Apologies if this has come up before. I distinctly remember writing about it in a comment, a long time ago.
The text was updated successfully, but these errors were encountered: