Repository: microsoft/terminal
File: src/cascadia/TerminalSettingsModel/ActionArgs.cpp (C++)

Code before:
            ss << fmt::format(L"-- \"{}\" ", Commandline());
        }

        auto s = ss.str();
        if (s.empty())
        {
            return L"";
        }

        // Chop off the last " "
        return winrt::hstring{ s.substr(0, s.size() - 1) };
    }

    winrt::hstring CopyTextArgs::GenerateName() const
    {
        std::wstringstream ss;

        if (DismissSelection())
        {
            ss << RS_(L"DismissSelectionCommandKey").c_str();
        }
        else
        {
            ss << RS_(L"DismissSelectionFalseCommandKey").c_str();
        }

        if (SingleLine())
        {
            ss << RS_(L"CopyTextAsSingleLineCommandKey").c_str();
        }
        else
        {
            ss << RS_(L"CopyTextCommandKey").c_str();
        }

        if (CopyFormatting())
        {
            ss << L", copyFormatting: ";
            if (CopyFormatting().Value() == CopyFormat::All)
            {
                ss << L"all, ";
            }
            else if (CopyFormatting().Value() == static_cast<CopyFormat>(0))
            {
                ss << L"none, ";
            }
            else
            {
                if (WI_IsFlagSet(CopyFormatting().Value(), CopyFormat::HTML))
                {
                    ss << L"html, ";

Review comment (refactor):
You're going to have to move this somewhere else in this method. So, here's how this function works:
- if `singleLine: true` --> the command palette displays the action as "Copy text as a single line"
- otherwise --> "Copy text"
- if `copyFormatting` is set, we append "copyFormatting: <the formatting selected>"

Honestly, the easiest approach I recommend is appending "dismissSelection: false" to the string if `dismissSelection: false`. 

@DHowett @nguyen-dows Thoughts? Y'all are generally good at wordsmithing stuff.

Code after:
        {
            ss << fmt::format(L"-- \"{}\" ", Commandline());
        }

        auto s = ss.str();
        if (s.empty())
        {
            return L"";
        }

        // Chop off the last " "
        return winrt::hstring{ s.substr(0, s.size() - 1) };
    }

    winrt::hstring CopyTextArgs::GenerateName() const
    {
        std::wstringstream ss;

        if (SingleLine())
        {
            ss << RS_(L"CopyTextAsSingleLineCommandKey").c_str();
        }
        else
        {
            ss << RS_(L"CopyTextCommandKey").c_str();
        }

        if (!DismissSelection())
        {
            ss << L", dismissSelection: false";
        }

        if (CopyFormatting())
        {
            ss << L", copyFormatting: ";
            if (CopyFormatting().Value() == CopyFormat::All)
            {
                ss << L"all, ";
            }
            else if (CopyFormatting().Value() == static_cast<CopyFormat>(0))
            {
                ss << L"none, ";
            }
            else
            {
                if (WI_IsFlagSet(CopyFormatting().Value(), CopyFormat::HTML))
                {
                    ss << L"html, ";
                }

                if (WI_IsFlagSet(CopyFormatting().Value(), CopyFormat::RTF))