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

Can you add clang-format.style to contributes.configuration in package.json? #152

Open
jeongukjae opened this issue Feb 8, 2023 · 1 comment

Comments

@jeongukjae
Copy link

As described here (https://github.com/zxh0/vscode-proto3#code-formatting), I could apply code-format configuration very well. (and, thank you :)) But, VSCode notifies me that clang-format.style is an unknown configuration.

Screenshot 2023-02-08 at 3 26 12 PM

Here's the settings that I applied:

{
    ...
    "[proto3]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "zxh404.vscode-proto3",
        "clang-format.style": "google",
    },
    ...
}

I think clang-format.style key should be added here.

"configuration": {
"type": "object",
"title": "vscode-proto3 configuration",
"properties": {
"protoc": {
"type": "object",
"description": "vscode-proto3 configuration",
"scope": "resource",
"properties": {
"path": {
"type": "string",
"default": "protoc",
"description": "Path to protoc command"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Command line options for protoc"
}
}
}
}
}

@mic006
Copy link

mic006 commented Dec 15, 2023

+1

Also please add clang-format settings (as shown above) in the extension documentation and in your .vscode/example file.
I was not able to find how to do it, Google sends me here.

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