x/tools/gopls: completion: rank 'continue' higher inside a loop #73690
Labels
gopls/completion
Issues related to auto-completion in gopls.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
v0.18.1
go env
What did you do?
What did you see happen?
The
const
is put as the best option.What did you expect to see?
I expect to see the
continue
as the best option. My reason is:if
inside a for loop, we have more confidence typedcon
wants to usecontinue
rather thanconst
.const
declared constants are prefered to put in file level.Hence, I want to adjust the gopls logic for this part:
If both of them are satisfied, provide
continue
with a higher score. I can help to do the code change.Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: