Skip to content

x/tools/gopls: Expect the Implement code action to add the receiver name by default. #64078

Closed
@tttoad

Description

@tttoad

I think adding default variable names is helpful in most cases.
If it passes, I will implement this feature.

What did you do?

Call Implement code action

What did you expect to see?

func (l *Logger) DPanicCtx(ctx context.Context, args ...interface{}) {
	panic("unimplemented")
}

// DPanicfCtx implements LoggerCtx.
func (l *Logger) DPanicfCtx(ctx context.Context, template string, args ...interface{}) {
	panic("unimplemented")
}

// DPaniclnCtx implements LoggerCtx.
func (l *Logger) DPaniclnCtx(ctx context.Context, args ...interface{}) {
	panic("unimplemented")
}

What did you see instead?

func (*Logger) DPanicCtx(ctx context.Context, args ...interface{}) {
	panic("unimplemented")
}

// DPanicfCtx implements LoggerCtx.
func (*Logger) DPanicfCtx(ctx context.Context, template string, args ...interface{}) {
	panic("unimplemented")
}

// DPaniclnCtx implements LoggerCtx.
func (*Logger) DPaniclnCtx(ctx context.Context, args ...interface{}) {
	panic("unimplemented")
}

Metadata

Metadata

Assignees

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.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

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions