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

Add txtpb support #172

Open
hansfn opened this issue Sep 4, 2024 · 1 comment
Open

Add txtpb support #172

hansfn opened this issue Sep 4, 2024 · 1 comment

Comments

@hansfn
Copy link

hansfn commented Sep 4, 2024

In commit bc0c05d textproto support was added. The recommended file extension is .txtpb and it should be supported.

It might already work, but since there is no release after the commit, I wasn't able to test.

@hansfn
Copy link
Author

hansfn commented Sep 5, 2024

It seems Clang format itself only supports / understands the .textproto file extension. Making VS code treat .txtpb as textproto language is easy, of course, using "files.associations".

A work-around is to use "Assume filename" in the extension setting, but then you force one Clang format language for all files - which is not what you want if your .clang-format file supports many languages. It seems the "Assume filename" setting needs to be per language in the extension settings.

Added: It seems Clang format recently started to support .txtbp as extension - but not in 18.

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

1 participant