提交 44fdc01c 编写于 作者: M Martin Strecker

Prefix containing type in title for method fixes.

上级 407cdabe
......@@ -223,7 +223,8 @@ private bool HasCascadingDeclarations(IMethodSymbol method)
private static string GetCodeFixTitle(IMethodSymbol methodToUpdate, IEnumerable<string> parameters)
{
var signature = $"{methodToUpdate.Name}({string.Join(", ", parameters)})";
var methodPrefix = methodToUpdate.IsConstructor() ? "" : $"{methodToUpdate.ContainingType.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)}.";
var signature = $"{methodPrefix}{methodToUpdate.Name}({string.Join(", ", parameters)})";
var title = string.Format(FeaturesResources.Add_parameter_to_0, signature);
return title;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册