-1

Is there a reason, why vscode does not suggest to use f.Close()?

f.Cl... no autocomplete

I have gopls installed, and yesterday autocomplete worked fine

Restarting vscode did not help.

guettli
  • 25,042
  • 81
  • 346
  • 663

1 Answers1

1

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

guettli
  • 25,042
  • 81
  • 346
  • 663