Skip to content

Signature file generation does not handle internal record with xml comment #13756

@nojaf

Description

@nojaf

When generating a signature file from an internal record with a code comment, the generated code is not indented far enough.

Repro steps

module SignatureFileGeneration.MyModule

type PullActions =
    internal
        {
            /// Any repo which doesn't have a master branch will have one created for it.
            Log : int
        }

leads to

module SignatureFileGeneration.MyModule

type PullActions =
    internal
    {
      
      /// Any repo which doesn't have a master branch will have one created for it.
      Log: int
    }

Expected behaviour

The generated signature should be considered equivalent to the backing source file.

Actual behaviour

The generated code isn't valid:

image

Known workarounds

Edit signature file by hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions