Skip to content

x/tools/gopls: feature: CLI syntax for renaming by identifier, not position (like cmd/gorename) #61627

Description

@nabice

Such as:

  "encoding/json".Decoder.Decode        method of package-level named type                                                                                                                                                                     
  (*"encoding/json".Decoder).Decode     ditto, alternative syntax                                                                                                                                                                              
  "encoding/json".Decoder.buf           field of package-level named struct type                                                                                                                                                               
  "encoding/json".HTMLEscape            package member (const, func, var, type)                                                                                                                                                                
  "encoding/json".Decoder.Decode::x     local object x within a method                                                                                                                                                                         
  "encoding/json".HTMLEscape::x         local object x within a function                                                                                                                                                                       
  "encoding/json"::x                    object x anywhere within a package                                                                                                                                                                     
  json.go::x                            object x within file json.go  

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions