Skip to content

Comment formatting incrementally adds slashes #646

@w5l

Description

@w5l

We've tested the v11.0.188 build from the CI. Both issues seem to have resolved, but a new one seems to have arised... 😅

When formatting a comment with at least a section that is multiline, it starts adding backlashes each time is formatted.

For example:

Original comment

/// <summary> This is a summary. </summary>
/// <param name="param"> This is a multiline comment for the parameter param. It is going to add backlashes. </param>
/// <returns> The returns. </returns>

Then, after the first time I format the document:

/// <summary> This is a summary. </summary>
/// <param name="param">
///     This is a multiline comment for the parameter param. It is going to add backlashes.
/// </param>
///        /// <returns> The returns. </returns>

A second time:

/// <summary> This is a summary. </summary>
/// <param name="param">
///     This is a multiline comment for the parameter param. It is going to add backlashes.
/// </param>
///        /// ///
/// <returns> The returns. </returns>

From then on, the line of backlashes will grow each time the document is formated.

Should we keep using this issue or create a new one?

Originally posted by @Starkie in #564 (comment)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions