You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gopls wants to modernize append(getSlice()[:1], getSlice()[2:]...) -> slices.Delete(getSlice(), 1, 2).
Since the two calls to getSlice() are replaced by one, the final output is replaced by [1 3].
What did you expect to see?
Behavior unchanged.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
ashurbekovz
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
Mar 19, 2025
gopls version
x/tools/gopls v0.18.1
go env
What did you do?
This program prints [1 4]
What did you see happen?
Gopls wants to modernize
append(getSlice()[:1], getSlice()[2:]...)
->slices.Delete(getSlice(), 1, 2)
.Since the two calls to
getSlice()
are replaced by one, the final output is replaced by [1 3].What did you expect to see?
Behavior unchanged.
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: