Skip to content

Upgrade direct dependencies in combination with the go tool directive: #3706

@hu3bi

Description

@hu3bi

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

When clicking "Upgrade direct dependencies", VS Code pulls in several unnecessary (tool) dependencies, which are removed after running go mod tidy. This behavior may be confusing, especially for new Go developers.
Describe the solution you'd like
I would prefer the same outcome as running go get -u all

Or vscode could just keep the behavior as it is and run go mod tidy afterward

Additional context
golang/go#71663

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions