Skip to content

Commit 3123832

Browse files
committed
Add obsolete attributes
1 parent 4785078 commit 3123832

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PowerShellEditorServices/Session/PowerShellContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace Microsoft.PowerShell.EditorServices
2323
using System.Management.Automation.Runspaces;
2424
using Microsoft.PowerShell.EditorServices.Session.Capabilities;
2525
using System.IO;
26+
using System.ComponentModel;
2627

2728
/// <summary>
2829
/// Manages the lifetime and usage of a PowerShell session.
@@ -1206,6 +1207,7 @@ internal static string GlobEscapePath(string path, bool escapeSpaces = false)
12061207
/// <param name="path">The path to process.</param>
12071208
/// <param name="escapeSpaces">Specify True to escape spaces in the path, otherwise False.</param>
12081209
/// <returns>The path with [ and ] escaped.</returns>
1210+
[Hidden, EditorBrowsable(EditorBrowsableState.Never)]
12091211
[Obsolete("This API is not meant for public usage and should not be used.")]
12101212
public static string EscapePath(string path, bool escapeSpaces)
12111213
{
@@ -1258,6 +1260,7 @@ internal static string UnescapeGlobEscapedPath(string globEscapedPath)
12581260
/// </summary>
12591261
/// <param name="path">The path to unescape.</param>
12601262
/// <returns>The path with the ` character before [, ] and spaces removed.</returns>
1263+
[Hidden, EditorBrowsable(EditorBrowsableState.Never)]
12611264
[Obsolete("This API is not meant for public usage and should not be used.")]
12621265
public static string UnescapePath(string path)
12631266
{

0 commit comments

Comments
 (0)