Skip to content

Format Tree-sitter query files#48

Merged
MrSubidubi merged 1 commit intomainfrom
formatting
Mar 20, 2026
Merged

Format Tree-sitter query files#48
MrSubidubi merged 1 commit intomainfrom
formatting

Conversation

@MrSubidubi
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Mar 20, 2026
@MrSubidubi MrSubidubi enabled auto-merge (squash) March 20, 2026 12:26
@MrSubidubi MrSubidubi merged commit 953af8c into main Mar 20, 2026
10 checks passed
@MrSubidubi MrSubidubi deleted the formatting branch March 20, 2026 12:27
@notpeter
Copy link
Contributor

What are you using to format?
Is it ts_query_ls format, tree-sitter-query-formatter, or something else?

@MrSubidubi
Copy link
Contributor Author

MrSubidubi commented Mar 20, 2026

It is ts_query_ls as shipped by the Tree-sitter query extension from Vitaly. Would pop up if that failed on a check, see https://github.com/zed-industries/zed/blob/8e9ff1a11c94de0cb4ac2a4a656d458d57ad38f5/.github/workflows/extension_tests.yml#L152-L155. Also looked at Topiary, but their default formatting for queries was not good, it would format them inconsistently and (even worse IMO) would sometimes format a query differently based on the formatting it had prior to formatting with Topiary.

I roll that out only as needed since I did not want to flood the org with the formatting PRs followed by a set of automated bumps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants