Skip to content

Commit c986e0e

Browse files
committed
Rename namespace PSConsoleUtilities to Microsoft.PowerShell
1 parent 830acc9 commit c986e0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+129
-126
lines changed

CheckHelp.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Import-Module -Name PSReadline
22

33
$about_topic = Get-Help -Name about_PSReadline
44

5-
$methods = [PSConsoleUtilities.PSConsoleReadLine].GetMethods('public,static') |
5+
$methods = [Microsoft.PowerShell.PSConsoleReadLine].GetMethods('public,static') |
66
Where-Object {
77
$method = $_
88
$parameters = $method.GetParameters()
@@ -59,4 +59,4 @@ Get-PSReadlineKeyHandler |
5959
Where-Object { $_.Function -eq $_.Description } |
6060
ForEach-Object {
6161
"Function missing description: $($_.Function)"
62-
}
62+
}

PSReadLine/BasicEditing.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Management.Automation;
88
using System.Management.Automation.Language;
99

10-
namespace PSConsoleUtilities
10+
namespace Microsoft.PowerShell
1111
{
1212
public partial class PSConsoleReadLine
1313
{

PSReadLine/Changes.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
### Version 1.0.0.14
1+
### Version 1.1.0
2+
3+
Breaking change:
4+
* Namespace PSConsoleUtilities has been renamed to Microsoft.PowerShell
25

36
### Version 1.0.0.13
47

PSReadLine/Cmdlets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using System.Reflection;
1212
using System.Linq;
1313

14-
namespace PSConsoleUtilities
14+
namespace Microsoft.PowerShell
1515
{
1616
public enum TokenClassification
1717
{

PSReadLine/Completion.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
using System.Management.Automation;
1212
using System.Management.Automation.Runspaces;
1313
using System.Text;
14-
using PSConsoleUtilities.Internal;
14+
using Microsoft.PowerShell.Internal;
1515

16-
namespace PSConsoleUtilities
16+
namespace Microsoft.PowerShell
1717
{
1818
public partial class PSConsoleReadLine
1919
{
@@ -24,7 +24,7 @@ public partial class PSConsoleReadLine
2424

2525
// Stub helper method so completion can be mocked
2626
[ExcludeFromCodeCoverage]
27-
CommandCompletion IPSConsoleReadLineMockableMethods.CompleteInput(string input, int cursorIndex, Hashtable options, PowerShell powershell)
27+
CommandCompletion IPSConsoleReadLineMockableMethods.CompleteInput(string input, int cursorIndex, Hashtable options, System.Management.Automation.PowerShell powershell)
2828
{
2929
return CalloutUsingDefaultConsoleMode(
3030
() => CommandCompletion.CompleteInput(input, cursorIndex, options, powershell));
@@ -204,14 +204,14 @@ private CommandCompletion GetCompletions()
204204
// Could use the overload that takes an AST as it's faster (we've already parsed the
205205
// input for coloring) but that overload is a little more complicated in passing in the
206206
// cursor position.
207-
PowerShell ps;
207+
System.Management.Automation.PowerShell ps;
208208
if (_remoteRunspace == null)
209209
{
210-
ps = PowerShell.Create(RunspaceMode.CurrentRunspace);
210+
ps = System.Management.Automation.PowerShell.Create(RunspaceMode.CurrentRunspace);
211211
}
212212
else
213213
{
214-
ps = PowerShell.Create();
214+
ps = System.Management.Automation.PowerShell.Create();
215215
ps.Runspace = _remoteRunspace;
216216
}
217217
_tabCompletions = _mockableMethods.CompleteInput(_buffer.ToString(), _current, null, ps);

PSReadLine/ConsoleBufferBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77

8-
namespace PSConsoleUtilities
8+
namespace Microsoft.PowerShell
99
{
1010
internal class ConsoleBufferBuilder
1111
{

PSReadLine/ConsoleKeyChordConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Linq;
88
using System.Runtime.InteropServices;
99

10-
namespace PSConsoleUtilities
10+
namespace Microsoft.PowerShell
1111
{
1212
public static class ConsoleKeyChordConverter
1313
{

PSReadLine/ConsoleLib.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.InteropServices;
99
using System.Text;
1010

11-
namespace PSConsoleUtilities
11+
namespace Microsoft.PowerShell
1212
{
1313
public static class NativeMethods
1414
{

PSReadLine/History.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using System.Text;
1111
using System.Threading;
1212

13-
namespace PSConsoleUtilities
13+
namespace Microsoft.PowerShell
1414
{
1515
public partial class PSConsoleReadLine
1616
{

PSReadLine/HistoryQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Diagnostics;
88
using System.Diagnostics.CodeAnalysis;
99

10-
namespace PSConsoleUtilities
10+
namespace Microsoft.PowerShell
1111
{
1212
[ExcludeFromCodeCoverage]
1313
internal sealed class QueueDebugView<T>

0 commit comments

Comments
 (0)