未验证 提交 66a6aac8 编写于 作者: J Jinu 提交者: GitHub

Merge pull request #21374 from zaytsev-victor/Fixed5258

Removed text truncation logic from Introduce Variable codeaction
......@@ -76,13 +76,6 @@ private string CreateDisplayText(TExpressionSyntax expression)
var singleLineExpression = _semanticDocument.Document.GetLanguageService<ISyntaxFactsService>().ConvertToSingleLine(expression);
var nodeString = singleLineExpression.ToString();
// prevent the display string from being too long
const int MaxLength = 40;
if (nodeString.Length > MaxLength)
{
nodeString = nodeString.Substring(0, MaxLength) + "...";
}
return CreateDisplayText(nodeString);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册