x/tools/gopls: code action "Extract interface for type" #65721
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
Refactoring
Issues related to refactoring tools
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
Irrelevant
go env
What did you do?
Given the following code:
What did you see happen?
It would be nice if gopls offered an action to extract an interface out of the used methods on the api field. So for the example given above, it would offer an edit to do something like this:
Where the method set of the generated interface is the methods that are called on the field that the action was initiated on, and if there are uses that are not method calls on that field then it would either error or just not offer the action.
What did you expect to see?
Nothing
Editor and settings
No response
Logs
No response
The text was updated successfully, but these errors were encountered: