Is there a reason, why vscode does not suggest to use f.Close()
?
I have gopls installed, and yesterday autocomplete worked fine
Restarting vscode did not help.
Is there a reason, why vscode does not suggest to use f.Close()
?
I have gopls installed, and yesterday autocomplete worked fine
Restarting vscode did not help.
I found the solution for my problem:
Above code belongs to the module "read-bytes".
I opened the file from within a different module.
Even restarting vscode did not help.
To solve this, I used "File / Open Folder", and opened the folder of "read-bytes".
Now autocomplete works fine.
Related: Single-folder workspaces