Skip to content

Align schema formatting closer to prettier#9613

Merged
tobias-tengler merged 5 commits intomainfrom
tte/align-closer-to-prettier
Apr 28, 2026
Merged

Align schema formatting closer to prettier#9613
tobias-tengler merged 5 commits intomainfrom
tte/align-closer-to-prettier

Conversation

@tobias-tengler
Copy link
Copy Markdown
Member

@tobias-tengler tobias-tengler commented Apr 28, 2026

List values, measure-or-break with no commas in broken form

Before

directive @semanticNonNull(levels: [Int!] = [
  0
]) on FIELD_DEFINITION

type Query {
  field(longArg: ["hello world this is a very long string!", "hello world this is a very long string!", "hello world this is a very long string!"]): String
}

After

directive @semanticNonNull(levels: [Int!] = [0]) on FIELD_DEFINITION

type Query {
  field(
    longArg: [
      "hello world this is a very long string!"
      "hello world this is a very long string!"
      "hello world this is a very long string!"
    ]
  ): String
}

Object values, bracket spacing in flat form, no commas in broken form

Before

{
  short(obj: {
    hello: "world",
    x: 5
  })
  empty(arg: {  })
}

After

{
  short(obj: { hello: "world", x: 5 })
  empty(arg: {})
}

Long object values break per-field

After

{
  long(
    obj: {
      longString: "hello world this is a very long string!"
      list: [1, 2, 3, 4, 5, 6, 7]
    }
  )
}

Call-site argument lists, measure-or-break

Before

{
  long(var: $thisIsAReallyLongVariableNameRight, int: 52342342342, float: 5.6, bool: true, string: "hello world this is a very long string!")
}

After

{
  long(
    var: $thisIsAReallyLongVariableNameRight
    int: 52342342342
    float: 5.6
    bool: true
    string: "hello world this is a very long string!"
  )
}

Directive arguments, measure-or-break

Before

type Foo @veryLongDirectiveName(firstArgumentName: "firstValue", secondArgumentName: "secondValue", thirdArgumentName: "thirdValue") {
  id: ID
}

After

type Foo
  @veryLongDirectiveName(
    firstArgumentName: "firstValue"
    secondArgumentName: "secondValue"
    thirdArgumentName: "thirdValue"
  ) {
  id: ID
}

Block strings, always 3-line, single-line content trimmed

Before

""" Customer """
type Customer {
  id: ID!
}

After

"""
Customer
"""
type Customer {
  id: ID!
}

implements list, flat with &, breaks to indented & per line

Before

type VRMConversation implements InterfaceOne & InterfaceTwo & InterfaceThree & InterfaceFour & InterfaceFive & InterfaceSix {
  a: Int
}

After

type VRMConversation implements InterfaceOne &
  InterfaceTwo &
  InterfaceThree &
  InterfaceFour &
  InterfaceFive &
  InterfaceSix {
  a: Int
}

(short lists stay inline: type Foo implements Node & Entity { ... })

Union types, flat with |, breaks to indented | per line

Before

union Feed = StoryType | ArticleType | AdvertType | LongerNameType | AnotherLongerNameType | OneMoreType

After

union Feed =
  | StoryType
  | ArticleType
  | AdvertType
  | LongerNameType
  | AnotherLongerNameType
  | OneMoreType

Directive declaration on locations, break when too long

After

directive @example on
  | FIELD_DEFINITION
  | OBJECT
  | INTERFACE
  | UNION
  | ENUM
  | INPUT_OBJECT
  | SCALAR

Fragment spread, no space after ...

Before

{
  user {
    ... userFields
  }
}

After

{
  user {
    ...userFields
  }
}

@tobias-tengler tobias-tengler force-pushed the tte/align-closer-to-prettier branch from 3c01181 to 2d7fd7b Compare April 28, 2026 15:16
@tobias-tengler tobias-tengler marked this pull request as ready for review April 28, 2026 15:19
Copilot AI review requested due to automatic review settings April 28, 2026 15:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates HotChocolate/StrawberryShake GraphQL document + SDL serialization to more closely match Prettier-style formatting (measure-or-break layouts, spacing changes, and multi-line formatting rules), and refreshes affected snapshots/fixtures across the repo.

Changes:

  • Adjust SyntaxSerializer/writer behavior for Prettier-parity formatting (e.g., fragment spread spacing, measure-or-break for arguments/variable definitions/directive arguments).
  • Refine block string and object value printing behavior (e.g., trim single-line block-string content; print {} for empty objects).
  • Add/update Prettier-parity fixture files and update many snapshots across language, schema, and codegen tests.

Reviewed changes

Copilot reviewed 225 out of 255 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/snapshots/QueryDocumentRewriterTests.GetReturnTypeName.snap Snapshot updates for fragment spread spacing (...X vs ... X).
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/snapshots/OperationDocumentHelperTests.Merge_Multiple_Documents.snap Snapshot updates for fragment spread spacing in merged documents.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.Tests/Utilities/snapshots/OperationDocumentHelperTests.Extract_Operation_Documents.snap Snapshot updates for fragment spread spacing in extracted documents.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/snapshots/SchemaGeneratorTests.Schema_With_Spec_Errors.snap Snapshot updates reflecting new document formatting and hash changes.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/snapshots/SchemaGeneratorTests.NonNullLists.snap Snapshot updates reflecting new document formatting and hash changes.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/snapshots/SchemaGeneratorTests.Full_Extension_File.snap Snapshot updates reflecting new document formatting and hash changes.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/snapshots/SchemaGeneratorTests.Create_PeopleSearch_From_ActiveDirectory_Schema.snap Snapshot updates reflecting new document formatting and hash changes.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/snapshots/ScalarGeneratorTests.Scalars_Are_Correctly_Inferred.snap Snapshot updates reflecting new document formatting and hash changes.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs Generated client snapshot updates for fragment spread spacing + document hash.
src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs Generated client snapshot updates for fragment spread spacing + document hash.
src/Nitro/CommandLine/test/CommandLine.Tests/resources/valid-exclude-by-tag-result/composite-schema.graphqls Resource schema formatting updates (directive locations broken into leading `
src/Nitro/CommandLine/test/CommandLine.Tests/resources/valid-example-1-result/composite-schema.graphqls Resource schema formatting updates (directive locations broken into leading `
src/Nitro/CommandLine/test/CommandLine.Tests/resources/invalid-example-1-result/composite-schema.graphqls Resource schema formatting updates (directive locations broken into leading `
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Query_With_SubscriptionSupport.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Query_With_SchemaDescription.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Query_With_RepeatableDirectives.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Query_With_DirectiveLocations.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Query_With_ArgumentDeprecation.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionQueryBuilderTests.Create_Default_Query.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Utilities/test/Utilities.Introspection.Tests/snapshots/IntrospectionFormatterTests.DeserializeStarWarsIntrospectionResult.snap Snapshot updates for default value printing + directive location formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonPolygonSerializerTests.FormatValue_Should_Pass_When_Value.snap Snapshot updates for list/object formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonPointSerializerTests.FormatValue_Should_Pass_When_Value.graphql Snapshot updates for list/object formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonMultiPolygonSerializerTests.FormatValue_Should_Pass_When_Value.graphql Snapshot updates for list/object formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonMultiPointSerializerTests.FormatValue_Should_Pass_When_Value.graphql Snapshot updates for list/object formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonMultiLineStringSerializerTests.FormatValue_Should_Pass_When_Value.graphql Snapshot updates for list/object formatting.
src/HotChocolate/Spatial/test/Types.Tests/snapshots/GeoJsonLineStringSerializerTests.FormatValue_Should_Pass_When_Value.graphql Snapshot updates for list/object formatting.
src/HotChocolate/Raven/test/Data.Raven.Filters.Tests/snapshots/ConventionTests.ListType_Should_NotContainAllOperation.snap Snapshot updates for directive location formatting.
src/HotChocolate/MongoDb/test/Types.MongoDb/snapshots/ObjectIdTypeTests.Should_MapObjectIdToScalar.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Language/test/Language.Tests/Visitors/snapshots/SyntaxRewriterTests.Rename_Field.snap Snapshot updates for many formatting rules (args/layout/union/directive locations/defaults).
src/HotChocolate/Language/test/Language.Tests/Utilities/snapshots/SyntaxPrinterTests.Serialize_KitchenSinkWithoutIndentation_OutputIsOneLine.snap Snapshot updates for fragment spread spacing + block string formatting.
src/HotChocolate/Language/test/Language.Tests/Utilities/snapshots/SyntaxPrinterTests.Serialize_KitchenSinkWithIndentation_OutputIsFormatted.snap Snapshot updates for measure-or-break arguments/object values and fragment spread spacing.
src/HotChocolate/Language/test/Language.Tests/Parser/snapshots/SchemaParserTests.ParseSchemaDefinition.snap Snapshot updates for block string formatting (3-line style).
src/HotChocolate/Language/test/Language.Tests/Parser/snapshots/QueryParserTests.KitchenSinkQueryQuery.graphql Snapshot updates for formatted query output.
src/HotChocolate/Language/test/Language.Tests/Parser/snapshots/QueryParserTests.IntrospectionQuery.graphql Snapshot updates for fragment spread spacing.
src/HotChocolate/Language/test/Language.Tests/Parser/snapshots/KitchenSinkParserTests.ParseFacebookKitchenSinkSchema.snap Snapshot updates for many formatting rules (args/layout/union/directive locations/defaults).
src/HotChocolate/Language/test/Language.Tests/Parser/snapshots/KitchenSinkParserTests.ParseFacebookKitchenSinkQuery.snap Snapshot updates for formatted query output.
src/HotChocolate/Language/test/Language.Tests/Parser/ValueParserTests.cs Adds coverage for preserving the block-string flag when parsing a single-line block string.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/snapshots/SyntaxWriterTests.ObjectValue_Indented_MatchesSnapshot.graphql Snapshot updates for object formatting (flat vs broken).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/snapshots/SyntaxWriterTests.ListValue_Indented_MatchesSnapshot.graphql Snapshot updates for list formatting (flat vs broken).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/snapshots/SyntaxWriterTests.FragmentWithDirectives_Indented_MatchesSnapshot.graphql Snapshot updates for fragment spread spacing.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/snapshots/SyntaxWriterTests.DirectiveDefinition_Indented_MatchesSnapshot.graphql Snapshot updates for directive location formatting (leading `
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/snapshots/DirectiveDefinitionNodeTests.WithArguments.graphql Snapshot updates for explicit = null default value printing.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/snapshots/QuerySyntaxPrinterTests.Serialize_KitchenSinkWithoutIndentation_OutputIsOneLine.snap Snapshot updates for fragment spread spacing + block string formatting.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/snapshots/QuerySyntaxPrinterTests.Serialize_KitchenSinkWithIndentation_OutputIsFormatted.snap Snapshot updates for measure-or-break arguments/object values and fragment spread spacing.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/snapshots/QuerySyntaxPrinterTests.Serialize_KitchenSinkWithIndentation_CanBeParsed.snap Snapshot updates for formatted output.
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/variable-definitions/variable_definitions.graphql Adds Prettier-parity fixture input (variable definitions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/variable-definitions/variable_definitions.expected.graphql Adds expected Prettier-parity output (variable definitions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/union-types/union_types.graphql Adds Prettier-parity fixture input (unions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/union-types/union_types.expected.graphql Adds expected Prettier-parity output (unions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/type-extension-definition/type-extendsion-syntax.graphql Adds Prettier-parity fixture input (type extensions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/type-extension-definition/type-extendsion-syntax.expected.graphql Adds expected Prettier-parity output (type extensions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/schema/schema.graphql Adds Prettier-parity fixture input (schema/extend schema).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/schema/schema.expected.graphql Adds expected Prettier-parity output (schema/extend schema).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/scalar/scalar.graphql Adds Prettier-parity fixture input (scalar).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/scalar/scalar.expected.graphql Adds expected Prettier-parity output (scalar).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/objects/objects.graphql Adds Prettier-parity fixture input (object values).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/objects/objects.expected.graphql Adds expected Prettier-parity output (object values).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/object_type_def.graphql Adds Prettier-parity fixture input (object type def).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/object_type_def.expected.graphql Adds expected Prettier-parity output (object type def).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/input.graphql Adds Prettier-parity fixture input (input type def).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/input.expected.graphql Adds expected Prettier-parity output (input type def).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/implements.graphql Adds Prettier-parity fixture input (implements spacing).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/implements.expected.graphql Adds expected Prettier-parity output (implements spacing).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/extend.graphql Adds Prettier-parity fixture input (extend type).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/extend.expected.graphql Adds expected Prettier-parity output (extend type).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/directives.graphql Adds Prettier-parity fixture input (field directives).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/directives.expected.graphql Adds expected Prettier-parity output (field directives).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/arguments.graphql Adds Prettier-parity fixture input (field args).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/object-type-def/arguments.expected.graphql Adds expected Prettier-parity output (field args).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/lists/lists.graphql Adds Prettier-parity fixture input (list values).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/lists/lists.expected.graphql Adds expected Prettier-parity output (list values).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/kitchen-sink/kitchen-sink.graphql Adds Prettier-parity fixture input (kitchen sink).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/kitchen-sink/kitchen-sink.expected.graphql Adds expected Prettier-parity output (kitchen sink).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/kitchen-sink/kitchen-sink-2.graphql Adds Prettier-parity fixture input (kitchen sink 2).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/kitchen-sink/kitchen-sink-2.expected.graphql Adds expected Prettier-parity output (kitchen sink 2).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/interface/many-interfaces.graphql Adds Prettier-parity fixture input (many interfaces).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/interface/many-interfaces.expected.graphql Adds expected Prettier-parity output (many interfaces).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/interface/interface.graphql Adds Prettier-parity fixture input (interfaces).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/interface/interface.expected.graphql Adds expected Prettier-parity output (interfaces).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/hello/hello.graphql Adds Prettier-parity fixture input (hello).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/hello/hello.expected.graphql Adds expected Prettier-parity output (hello).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fragments/fragments.graphql Adds Prettier-parity fixture input (fragments).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fragments/fragments.expected.graphql Adds expected Prettier-parity output (fragments).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fragment-variables/fragment_variables.graphql Adds Prettier-parity fixture input (fragment variables).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fragment-variables/fragment_variables.expected.graphql Adds expected Prettier-parity output (fragment variables).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fields/fields.graphql Adds Prettier-parity fixture input (field selection formatting).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/fields/fields.expected.graphql Adds expected Prettier-parity output (field selection formatting).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/enum/enum.graphql Adds Prettier-parity fixture input (enum).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/enum/enum.expected.graphql Adds expected Prettier-parity output (enum).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/directives/directives.graphql Adds Prettier-parity fixture input (directives formatting).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/directives/directives.expected.graphql Adds expected Prettier-parity output (directives formatting).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/directive-decl/directive_decl.graphql Adds Prettier-parity fixture input (directive declarations).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/directive-decl/directive_decl.expected.graphql Adds expected Prettier-parity output (directive declarations).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/deprecation/directives.graphql Adds Prettier-parity fixture input (deprecation cases).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/deprecation/directives.expected.graphql Adds expected Prettier-parity output (deprecation cases).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/definitions/fields.graphql Adds Prettier-parity fixture input (operation definitions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/definitions/fields.expected.graphql Adds expected Prettier-parity output (operation definitions).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/arguments/hello.graphql Adds Prettier-parity fixture input (call-site argument lists).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/Utilities/PrettierParity/Fixtures/arguments/hello.expected.graphql Adds expected Prettier-parity output (call-site argument lists).
src/HotChocolate/Language/test/Language.SyntaxTree.Tests/HotChocolate.Language.SyntaxTree.Tests.csproj Copies new fixture .graphql files to test output directory.
src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxWriterExtensions.cs Block string trimming + {} for empty objects.
src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxSerializer.cs Routes value/object field serialization through measure-or-break helpers.
src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxSerializer.QuerySyntax.cs Measure-or-break rules for args/vars + fragment spread spacing.
src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxSerializer.Directives.cs New directive argument measure-or-break formatting helper.
src/HotChocolate/Fusion/test/Fusion.Execution.Tests/Planning/snapshots/LookupTests.Require_Inaccessible_Data.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.Execution.Tests/Execution/Types/snapshots/SerializeAsTests.SerializeAs_Will_Not_Be_In_The_Schema.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.Execution.Tests/Execution/Types/snapshots/SerializeAsTests.SerializeAs_Will_Be_In_The_Schema.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/snapshots/SourceSchemaMergerTests.Merge_FourNamedSchemas_AddsFusionDefinitions.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SourceSchemaMerger.Union.Tests.cs Inline snapshot formatting updates (long directive args broken).
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SourceSchemaMerger.TagDirective.Tests.cs Inline snapshot formatting updates (directive locations + indentation).
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SourceSchemaMerger.OutputField.Tests.cs Inline snapshot formatting updates (directive args broken).
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SourceSchemaMerger.GlobalObjectIdentification.Tests.cs Inline snapshot formatting updates (directive args broken).
src/HotChocolate/Fusion/test/Fusion.Composition.Tests/SourceSchemaMerger.Argument.Tests.cs Inline snapshot formatting updates (directive args broken).
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.Typename_On_Introspection_Types.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.Introspection_OfType_Without_SelectionSet.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.Introspection_Field_Type_Without_SelectionSet.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.IntrospectionQueries_TypeCapabilitiesQuery.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.IntrospectionQueries_SchemaCapabilitiesQuery.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.IntrospectionQueries_InputValueCapabilitiesQuery.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.IntrospectionQueries_DirectiveCapabilitiesQuery.yaml Snapshot updates for directive location formatting.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/snapshots/IntrospectionTests.Download_Schema.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Data/test/Data.Filters.Tests/Types/snapshots/ComparableOperationInputTests.Create_Implicit_Operation_Normalized.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Data/test/Data.Filters.Tests/Types/snapshots/ComparableOperationInputTests.Create_Implicit_Operation.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/SlicingArgumentsTests.SlicingArgumentDefaultValue_ListSizeAttribute_HasPrecedenceOver_DefaultPageSize.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/SlicingArgumentsTests.SlicingArgumentDefaultValue_Inferred_From_DefaultPageSize.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/SchemaIntegrationTests.Rewrite_NonDefaultWeights_DoesNotRemoveCostDirectives.graphql Snapshot updates for directive location formatting.
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/SchemaIntegrationTests.Rewrite_DefaultWeights_RemovesCostDirectives.graphql Snapshot updates for directive location formatting.
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/CostSyntaxRewriterTests.Rewrite_NonDefaultWeights_DoesNotRemoveCostDirectives.graphql Snapshot updates for directive location formatting.
src/HotChocolate/CostAnalysis/test/CostAnalysis.Tests/snapshots/CostSyntaxRewriterTests.Rewrite_DefaultWeights_RemovesCostDirectives.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/snapshots/ObjectTypeTests.ObjectType_FieldDefaultValue_SerializesCorrectly.snap Snapshot updates for object default value formatting.
src/HotChocolate/Core/test/Types.Tests/Types/snapshots/ObjectTypeTests.Infer_Argument_Default_Values.snap Snapshot updates for explicit = null defaults printing.
src/HotChocolate/Core/test/Types.Tests/Types/snapshots/ObjectTypeTests.Argument_Type_IsInferred_From_Parameter.snap Snapshot updates for explicit = null defaults printing.
src/HotChocolate/Core/test/Types.Tests/Types/snapshots/InputObjectTypeTests.Input_Infer_Default_Values.snap Snapshot updates for explicit = null defaults + list/object default formatting.
src/HotChocolate/Core/test/Types.Tests/Types/snapshots/DescriptionTests.Schema_With_All_Possible_Descriptions.graphql Snapshot updates for argument definition formatting + directive args.
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/snapshots/LocalDateTimeTypeTests.LocalDateTime_As_ReturnValue_Schema.snap Snapshot updates for @specifiedBy argument formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/snapshots/LocalDateTimeTypeTests.LocalDateTime_As_Argument_Schema.snap Snapshot updates for @specifiedBy argument formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Directives/snapshots/TagDirectiveTests.SchemaFirst_Tag.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Directives/snapshots/TagDirectiveTests.EnsureAllLocationsAreApplied.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Directives/snapshots/RequiresOptInDirectiveTests.BuildSchemaAsync_SchemaFirst_MatchesSnapshot.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Directives/snapshots/RequiresOptInDirectiveTests.BuildSchemaAsync_ImplementationFirst_MatchesSnapshot.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Directives/snapshots/RequiresOptInDirectiveTests.BuildSchemaAsync_CodeFirst_MatchesSnapshot.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Types/Composite/LookupTests.cs Inline SDL updates for directive location formatting.
src/HotChocolate/Core/test/Types.Tests/Configuration/snapshots/FactoryTypeReferenceTests.FactoryTypeReference_Is_Handled.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Core/test/Types.Mutations.Tests/snapshots/AnnotationBasedMutations.Union_Result_7_Schema.graphql Snapshot updates for union formatting (leading `
src/HotChocolate/Core/test/Types.CursorPagination.Tests/snapshots/InferenceTests.Handle_FactoryTypeReference_For_Enumerable.graphql Snapshot updates for directive args + locations formatting.
src/HotChocolate/Core/test/Types.CursorPagination.Tests/snapshots/InferenceTests.Handle_FactoryTypeReference_For_Connection.graphql Snapshot updates for directive args + locations formatting.
src/HotChocolate/Core/test/Types.Analyzers.Integration.Tests/snapshots/IntegrationTests.Schema_Snapshot.snap Snapshot updates for directive args + locations formatting.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Resolve_Concrete_Types_From_Unions.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Prepare_Fragment_Definition.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Nested_Fragments_with_Conditions.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Nested_Fragments.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.FragmentSpread_SelectionsSet_Empty.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Field_Is_Visible_When_One_Selection_Is_Visible_4.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Field_Is_Visible_When_One_Selection_Is_Visible_3.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Field_Is_Visible_When_One_Selection_Is_Visible_2.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Field_Is_Visible_When_One_Selection_Is_Visible_1.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Nested_With_Parent_Field_Deduplication.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Multiple_Nested_Same_Fragment.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Multiple_Levels_Field_Deduplication.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Fragment_Spread_Non_Deferred_Then_Deferred.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Fragment_Spread_Deferred_And_Non_Deferred.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Fragment_Spread.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Defer_Different_Branches_Non_Overlapping_Levels.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Crypto_Include.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Crypto_Fragment_Removes_Conditional_State_For_Price.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Crypto_Details_Test.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Execution.Tests/Processing/snapshots/OperationCompilerTests.Crypto_Conditional_Fragment_Has_Additional_Field.snap Snapshot updates for fragment spread spacing.
src/HotChocolate/Core/test/Authorization.Tests/snapshots/SchemaFirstAuthorizationTests.Authorize_Apply_Can_Be_Omitted.graphql Snapshot updates for list formatting + directive locations formatting.
src/HotChocolate/Core/test/Authorization.Tests/snapshots/AnnotationBasedAuthorizationTests.Authorize_Node_Field_Schema.graphql Snapshot updates for directive location formatting.
src/HotChocolate/Caching/test/Caching.Tests/snapshots/CacheControlTypeInterceptorTests.DataResolvers_CacheControl_Disabled.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Caching/test/Caching.Tests/snapshots/CacheControlTypeInterceptorTests.DataResolvers_ApplyDefaults_False.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Caching/test/Caching.Tests/snapshots/CacheControlTypeInterceptorTests.DataResolvers_ApplyDefaults_DifferentDefaultScope.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Caching/test/Caching.Tests/snapshots/CacheControlTypeInterceptorTests.DataResolvers_ApplyDefaults_DifferentDefaultMaxAge.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Caching/test/Caching.Tests/snapshots/CacheControlTypeInterceptorTests.DataResolvers_ApplyDefaults.snap Snapshot updates for directive argument formatting (break args).
src/HotChocolate/Caching/test/Caching.Tests/SchemaTests.cs Inline SDL updates for directive location formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSemanticNonNullSchemaMiddlewareTests.Download_GraphQL_SemanticNonNull_Schema_Does_Not_Include_Internal_Directives.snap Snapshot updates for directive location formatting + list default formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_Schema_Slicing_Args_Enabled.md Snapshot updates for directive args + locations formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_Schema_Does_Not_Include_Internal_Directives.snap Snapshot updates for directive location formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_Schema.md Snapshot updates for directive args + locations formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_SDL_Explicit_Route_Explicit_Pattern.snap Snapshot updates for directive args + locations formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_SDL_Explicit_Route.snap Snapshot updates for directive args + locations formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.Tests/snapshots/HttpGetSchemaMiddlewareTests.Download_GraphQL_SDL.snap Snapshot updates for directive args + locations formatting.
src/HotChocolate/AspNetCore/test/AspNetCore.CommandLine.Tests/snapshots/SchemaExportCommandTests.App_Should_WriteSemanticNonNullSchemaToFile_When_SemanticNonNullOptionIsSpecified.md Snapshot updates for list default formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/snapshots/BuiltInTypesShareableTests.Ensure_PagingInfo_Is_Shareable_When_Shareable_Already_Registered.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/snapshots/BuiltInTypesShareableTests.Ensure_PagingInfo_Is_Shareable.graphql Snapshot updates for directive argument formatting (break args).
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/ServiceTypeTests.cs Inline snapshot updates for @link formatting + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/RequiresScopesDirectiveTests.RequiresScopesDirectives_GetAddedCorrectly_CodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/RequiresScopesDirectiveTests.RequiresScopesDirectives_GetAddedCorrectly_Annotations.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/RequiresScopesDirectiveTests.RequiresScopesDirective_GetsAddedCorrectly_Annotations.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/RequiresDirectiveTests.AnnotateProvidesToFieldCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/RequiresDirectiveTests.AnnotateProvidesToClassAttributePureCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ProvidesDirectiveTests.AnnotateProvidesToFieldCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ProvidesDirectiveTests.AnnotateProvidesToClassAttributePureCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/PolicyDirectiveTests.PolicyDirectives_GetAddedCorrectly_CodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/PolicyDirectiveTests.PolicyDirectives_GetAddedCorrectly_Annotations.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/PolicyDirectiveTests.PolicyDirective_GetsAddedCorrectly_Annotations.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/OverrideDirectiveTests.OverrideDirective_Progressive_Annotation.snap Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/OverrideDirectiveTests.OverrideDirective_Annotation.snap Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToObjectTypeCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToObjectTypeAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToInterfaceTypeCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToInterfaceAttributesAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToClassAttributesAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/NonResolvableKeyDirectiveTests.AnnotateKeyToClassAttributeAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToObjectTypeCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToObjectTypeAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToInterfaceTypeCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToInterfaceAttributesAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToClassAttributesAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/KeyDirectiveTests.AnnotateKeyToClassAttributeAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ExternalDirectiveTests.AnnotateExternalToTypeFieldCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ExternalDirectiveTests.AnnotateExternalToTypeFieldAnnotationBased.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ComposeDirectiveTests.ExportDirectiveUsingTypeCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/Directives/snapshots/ComposeDirectiveTests.ExportDirectiveUsingNameCodeFirst.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/snapshots/CertificationTests.Subgraph_SDL.snap Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/CodeFirst/snapshots/CertificationTests.Schema_Snapshot.graphql Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/snapshots/CertificationTests.Subgraph_SDL.snap Snapshot updates for @link + directive location formatting.
src/HotChocolate/ApolloFederation/test/ApolloFederation.Tests/CertificationSchema/AnnotationBased/snapshots/CertificationTests.Schema_Snapshot.graphql Snapshot updates for @link + directive location formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tobias-tengler tobias-tengler force-pushed the tte/align-closer-to-prettier branch from 00f74ac to d3d014f Compare April 28, 2026 16:04
@tobias-tengler tobias-tengler requested a review from Copilot April 28, 2026 16:05
@tobias-tengler tobias-tengler merged commit 9210d63 into main Apr 28, 2026
138 checks passed
@tobias-tengler tobias-tengler deleted the tte/align-closer-to-prettier branch April 28, 2026 16:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 212 out of 242 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 52 to 56
var flatWidth = MeasureFlatVariableDefinitions(variableDefinitions);

if (writer.Column + flatWidth <= _printWidth)
if (!VariableDefinitionsContainBlockString(variableDefinitions)
&& writer.Column + flatWidth <= _printWidth)
{
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WriteVariableDefinitions avoids flat printing when variable definitions contain block strings, but the check only inspects variable definition descriptions/default values. Variable definitions can also have directives, and directive arguments may contain block strings; in that case the current flat-path can still be chosen and WriteFlatVariableDefinition will emit multiline block strings inside a supposedly-flat variable definition list (and MeasureFlatVariableDefinitions width becomes unreliable). Consider extending VariableDefinitionsContainBlockString to also scan variableDefinition.Directives (e.g., via DirectivesContainBlockString) or adding a separate guard in the flat-width condition.

Copilot uses AI. Check for mistakes.
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