Skip to content

x/tools/gopls: redundant import name added #35397

@muirdm

Description

@muirdm

Steps to reproduce:

Starting with:

package main

import "os/exec"

func main() {
	exec.CommandContext()
}
  1. Complete at CommandContext(<>) and select "context.Background"
  2. I expect to get an import for "context", but I get context "context" (redundant alias).

alias

Also note that it says from "context" in the candidate description although it is not required in this case.

/cc @stamblerre @heschik

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis 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