dotnet/roslyn

Argument wrapping fails in the precense of comments

开放

#40,368 创建于 2019年12月13日

 (2 条评论) (0 个反应) (0 位负责人)C# (4,257 个派生)batch import
Area-IDEBugIDE-CodeStylehelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Consider this code:

public void M(object param1, object param2)
{
	M(
		1,
		// Comment
		2);
}

We do not show any help for adjusting how the comments are wrapped in this case. While I understand not being able to unwrap comments here (where are we supposed to put the comment, after all), changing the indentation level of the arguments should be possible. /cc @CyrusNajmabadi for thoughts on how this could be improved.

贡献者指南