Skip to content

Is it possible that we have a parameter in settings to allow user specify the sub-directory as root of Go project #2967

Open
@sillydong

Description

@sillydong

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

image

We always see such message if we open a repo and go.mod is not under the root directory of that repo. I tried the build.expandWorkspaceToModule setting, it does not recognize the sub-directory contains go.mod even it is the only sub-directory which contains go.mod file.

Describe the solution you'd like

Provide a setting to allow user specify the sub-directory as root directory and pass it to go plugins.

Describe alternatives you've considered

I tried build.expandWorkspaceToModule but not helping.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionThis is a question, rather than an issue report.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.gopls/workspaceworkspace setup related issues (UX of multi-modules, nested modules, GOPATH handling)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions