diff --git a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs index 30820c949e..da66e3c308 100644 --- a/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs +++ b/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs @@ -2132,8 +2132,8 @@ private static IEnumerable ViewsOf_System_Management_Autom $null = $sb.Append([Environment]::NewLine) } - $sb.ToString() - ", label: "Extension") + $sb.ToString()", + label: "Extension") .EndEntry() .EndList()); } diff --git a/src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs b/src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs index 81e1c25a36..ecd9202db6 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/PSStyle.cs @@ -300,7 +300,6 @@ public class FormattingData /// /// Contains formatting styles for FileInfo objects. /// - public class FileInfoFormatting { /// @@ -319,16 +318,16 @@ public class FileInfoFormatting public string Executable { get; set; } = "\x1b[32;1m"; /// - /// Gets or sets the style for archive. + /// Gets the style for archive. /// - public Dictionary Extension { get; } + public Dictionary Extension { get; } /// /// Initializes a new instance of the class. /// public FileInfoFormatting() { - Extension = new Dictionary(StringComparer.OrdinalIgnoreCase); + Extension = new Dictionary(StringComparer.OrdinalIgnoreCase); // archives Extension.Add(".zip", "\x1b[31;1m"); diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs index e8a658a811..d15362a438 100644 --- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs +++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs @@ -2063,7 +2063,7 @@ string ToModeString(FileSystemInfo fileSystemInfo) /// Name if a file or directory, Name -> Target if symlink. public static string NameString(PSObject instance) { - string[] executableExtensions = {".exe", ".bat", ".com", ".cmd"}; + string[] executableExtensions = { ".exe", ".bat", ".com", ".cmd" }; if (ExperimentalFeature.IsEnabled("PSAnsiRendering") && ExperimentalFeature.IsEnabled("PSFileInfoColor")) {