-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
gopls version: master (242e5ed)
VSCode settings:
Steps to reproduce:
- Enable
gopls.ui.completion.usePlaceholders. - Create a
.gofile without any imports. - Try to complete a function call from some package (for example,
log.Printf) - the completion response has placeholder but not their names. - Try to complete the same function call (now with imported package) - the completion response has correct placeholders.
2023-05-17.20-01-03.mp4
Note: older versions of gopls didn't provide placeholders at all for cases when the package import was missing. Example:
2023-05-17.20-20-35.mp4
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
{ "gopls": { "ui.completion.usePlaceholders": true, // ... } }