Skip to content

Ignored comment indentation when indenting just before interpolation hole #158

@SleepWellPupper

Description

@SleepWellPupper

When indenting via Summary after interpolation indentation, the comment is not emitted:

using RhoMicro.CodeAnalysis.Lyra;
using static RhoMicro.CodeAnalysis.Lyra.ComponentFactory.Docs;

using var builder = new CSharpSourceBuilder(new CSharpSourceBuilderOptions() { Prelude = (_, _) => { } });

builder.Append(
    $"""
         {Summary("Foo")}
     """);

Console.WriteLine(builder);

outputs:

    <summary>
    /// Foo
    /// </summary>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions