Skip to content

x/tools/gopls: add a source action to see assembly for a range of lines #69122

@firelizzard18

Description

@firelizzard18

Is your feature request related to a problem? Please describe.
I wanted to understand why this allocates:

func normalize(v any) (any, typeCode, bool) {
	switch v := v.(type) {
	case string:
		return v, typeCodeString, true
	// ...
	}
}

Describe the solution you'd like
I'd like to be able to select a line and view the assembly for that line (or for a range of lines).

Describe alternatives you've considered
I can (and did) use "Browse amd64 assembly for normalize" but that doesn't scale well to larger functions.

Additional context
#67478

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

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions