Repository: PowerShell/PowerShell
File: src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs (C#)

Code before:
                    bool showToUser = true;
                    var compiledAttributes = param.Parameter.CompiledAttributes;
                    if (compiledAttributes != null && compiledAttributes.Count > 0)
                    {
                        foreach (var attr in compiledAttributes)
                        {
                            if (attr is ParameterAttribute pattr)
                            {
                                if (pattr.DontShow)
                                {
                                    showToUser = false;
                                    addCommonParameters = false;
                                    break;
                                }
                                
                                if (helpMessage is null && TryGetParameterHelpMessage(pattr, commandAssembly, out string attrHelpMessage))
                                {
                                    helpMessage = $" - {attrHelpMessage}";
                                }
                            }
                        }
                    }

                    if (showToUser)
                    {
                        string completionText = "-" + name + colonSuffix;
                        string tooltip = $"{type}{name}{helpMessage}";
                        listInUse.Add(new CompletionResult(completionText, name, CompletionResultType.ParameterName,
                                                           tooltip));
                    }
                }
                else if (parameterName != string.Empty)
                {
                    // Process alias when there is partial input
                    foreach (var alias in param.Parameter.Aliases)
                    {
                        if (pattern.IsMatch(alias))
                        {
                            listInUse.Add(new CompletionResult(
                                $"-{alias}{colonSuffix}",
                                alias,
                                CompletionResultType.ParameterName,
                                type + alias));
                        }
                    }
                }
            }

            // Add the common parameters to the results if expected.
            if (addCommonParameters)
            {

Review comment (suggestion):
```suggestion
                        string completionText = $"-{name}{colonSuffix}";
```

Code after:
                    bool showToUser = true;
                    var compiledAttributes = param.Parameter.CompiledAttributes;
                    if (compiledAttributes != null && compiledAttributes.Count > 0)
                    {
                        foreach (var attr in compiledAttributes)
                        {
                            if (attr is ParameterAttribute pattr)
                            {
                                if (pattr.DontShow)
                                {
                                    showToUser = false;
                                    addCommonParameters = false;
                                    break;
                                }
                                
                                if (helpMessage is null && TryGetParameterHelpMessage(pattr, commandAssembly, out string attrHelpMessage))
                                {
                                    helpMessage = $" - {attrHelpMessage}";
                                }
                            }
                        }
                    }

                    if (showToUser)
                    {
                        string completionText = $"-{name}{colonSuffix}";
                        string tooltip = $"{type}{name}{helpMessage}";
                        listInUse.Add(new CompletionResult(completionText, name, CompletionResultType.ParameterName,
                                                           tooltip));
                    }
                }
                else if (parameterName != string.Empty)
                {
                    // Process alias when there is partial input
                    foreach (var alias in param.Parameter.Aliases)
                    {
                        if (pattern.IsMatch(alias))
                        {
                            listInUse.Add(new CompletionResult(
                                $"-{alias}{colonSuffix}",
                                alias,
                                CompletionResultType.ParameterName,
                                type + alias));
                        }
                    }
                }
            }

            // Add the common parameters to the results if expected.
            if (addCommonParameters)
            {