Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use "-extra" in VS Code #252

Closed
jippi opened this issue Nov 15, 2022 · 1 comment
Closed

How do I use "-extra" in VS Code #252

jippi opened this issue Nov 15, 2022 · 1 comment

Comments

@jippi
Copy link

jippi commented Nov 15, 2022

Hey,

I have a VS Code config file like this, and I would love for the "format on save" to apply the -extra gofumpt flag - but for the life of me, I can't make it apply in the editor. I tried looking through this repo and gopls, and nothing came up - so I'm assuming I'm either missing something really simple - or it's not something people generally do.

Thanks for an amazing project!

{
    "files.eol": "\n",
    "go.coverMode": "atomic",
    "go.coverOnSave": true,
    "go.inlayHints.compositeLiteralFields": true,
    "go.inlayHints.compositeLiteralTypes": true,
    "go.inlayHints.constantValues": true,
    "go.inlayHints.functionTypeParameters": true,
    "go.inlayHints.parameterNames": true,
    "go.inlayHints.rangeVariableTypes": true,
    "go.testOnSave": true,
    "go.lintTool": "golangci-lint",
    "go.lintOnSave": "workspace",
    "go.buildTags": "wireinject,mage",
    "go.formatFlags": ["-extra"],
    "go.lintFlags": [
        "--enable=gocritic"
    ],
    "go.useLanguageServer": true,
    "go.languageServerFlags": ["-v"],
    "gopls": {
        "ui.semanticTokens": true,
        "formatting.gofumpt": true
    }
}
@mvdan
Copy link
Owner

mvdan commented Nov 18, 2022

That's not possible right now, sorry. #251 tracks this :)

@mvdan mvdan closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants