Skip to content

Go: Add Import "k8s.io/apimachinery/pkg/types" #2613

Open
@guettli

Description

@guettli

Is your feature request related to a problem? Please describe.

I copy+paste an import from an other file. Then I want to add this import from the clipboard via ctrl-shift-p "Go: Add Import"

But it does not work, because the string is quoted.

Describe the solution you'd like

If I copy+paste this string:

"k8s.io/apimachinery/pkg/types"

The function "Go: Add Import" should work for above strings, too (including leading/trailing spaces).

Describe alternatives you've considered

A work-around is that I remove the quotes, but this could be easily automated.

Additional context

It would be great, if I could add imports like this via ctrl-shift-p "Go: Add import", too:

clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"

Thank you for the great Golang vscode plugin.

It works very fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestHelpWantedIssues that are not prioritized by the maintainers. Help is requested from community contributors.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions