Fix GraphQL dangling comment print (#18581)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-13 02:18:04 +08:00
1 parent 360b8681d9
commit 7a76a9b119
4 files changed
+72 -4

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#### Fix comment print (#18581 by @fisker)
<!-- prettier-ignore -->
```gql
# Input
query {
search(filters: {
# TODO
}) {
id
}
}
# Prettier stable
Error: Comment "TODO" was not printed. Please report this error!
# Prettier main
query {
search(
filters: {
# TODO
}
) {
id
}
}
```