Skip to content

Commit ce7ea86

Browse files
committed
Rename Transport.Stdio namespaces to reflect paths
This change renames the namespaces of all types in the Transport.Stdio assembly to reflect the new type organization. It also changes the default namespace to Microsoft.PowerShell.EditorServices.Protocol. The assembly file name will change in a future commit.
1 parent 5f8ff01 commit ce7ea86

File tree

91 files changed

+175
-277
lines changed

Some content is hidden

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

91 files changed

+175
-277
lines changed

src/PowerShellEditorServices.Host/MessageLoop.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
//
55

66
using Microsoft.PowerShell.EditorServices;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Event;
8-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
9-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Model;
10-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
7+
using Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter;
8+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
119
using Nito.AsyncEx;
1210
using System;
1311
using System.IO;

src/PowerShellEditorServices.Host/Program.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio;
76
using Microsoft.PowerShell.EditorServices.Utility;
87
using System;
98
using System.Diagnostics;

src/PowerShellEditorServices.Host/StdioConsoleHost.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Event;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using Microsoft.PowerShell.EditorServices.Utility;
98
using System;
109
using System.Collections.Generic;

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/AttachRequest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77
using System.Threading.Tasks;
88

9-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
9+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1010
{
1111
[MessageTypeName("attach")]
1212
public class AttachRequest : RequestBase<AttachRequestArguments>
@@ -26,4 +26,3 @@ public class AttachRequestArguments
2626
public int Port { get; set; }
2727
}
2828
}
29-

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/AttachResponse.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using System;
8-
using System.Collections.Generic;
9-
using System.Linq;
10-
using System.Text;
11-
using System.Threading.Tasks;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
127

13-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
149
{
1510
[MessageTypeName("attach")]
1611
public class AttachResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/Breakpoint.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using System;
7-
using System.Collections.Generic;
8-
using System.Linq;
9-
using System.Text;
10-
using System.Threading.Tasks;
11-
12-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Model
6+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
137
{
148
public class Breakpoint
159
{
@@ -32,4 +26,3 @@ public static Breakpoint Create(
3226
}
3327
}
3428
}
35-

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/ContinueRequest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using Nito.AsyncEx;
98
using System.Threading.Tasks;
109

11-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
10+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1211
{
1312
[MessageTypeName("continue")]
1413
public class ContinueRequest : RequestBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/ContinueResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("continue")]
1111
public class ContinueResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/DisconnectRequest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using Nito.AsyncEx;
98
using System;
109
using System.Threading.Tasks;
1110

12-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
11+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1312
{
1413
[MessageTypeName("disconnect")]
1514
public class DisconnectRequest : RequestBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/DisconnectResponse.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using System;
8-
using System.Collections.Generic;
9-
using System.Linq;
10-
using System.Text;
11-
using System.Threading.Tasks;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
127

13-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
149
{
1510
[MessageTypeName("disconnect")]
1611
public class DisconnectResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/EvaluateRequest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using Nito.AsyncEx;
98
using System.Threading.Tasks;
109

11-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
10+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1211
{
1312
[MessageTypeName("evaluate")]
1413
public class EvaluateRequest : RequestBase<EvaluateRequestArguments>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/EvaluateResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("evaluate")]
1111
public class EvaluateResponse : ResponseBase<EvaluateResponseBody>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/Eventbase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
76
using Newtonsoft.Json;
87

9-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Event
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
109
{
1110
public abstract class EventBase<TBody> : MessageBase
1211
{

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/ExitedEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Event
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("exited")]
1111
public class ExitedEvent : EventBase<ExitedEventBody>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/InitializeResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("initialize")]
1111
public class InitializeResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/InitializedEvent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Event
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("initialized")]
1111
public class InitializedEvent : EventBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/LaunchRequest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Event;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
8-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
97
using Microsoft.PowerShell.EditorServices.Utility;
108
using Nito.AsyncEx;
119
using System;
1210
using System.Collections.Generic;
1311
using System.Threading.Tasks;
1412

15-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
13+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1614
{
1715
[MessageTypeName("launch")]
1816
public class LaunchRequest : RequestBase<LaunchRequestArguments>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/LaunchResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("launch")]
1111
public class LaunchResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/Message.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System.Collections.Generic;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Model
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
public class Message
1111
{

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/MessageBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Newtonsoft.Json;
77
using Newtonsoft.Json.Converters;
88

9-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Message
9+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1010
{
1111
/// <summary>
1212
/// Provides the base class for all message types in the

src/PowerShellEditorServices.Transport.Stdio/LanguageServer/MessageErrorResponse.cs renamed to src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/MessageErrorResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("messageHandlingError")]
1111
public class MessageErrorResponse : ResponseBase<MessageErrorResponseDetails>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/MessageParser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
//
55

66

7+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
78
using Microsoft.PowerShell.EditorServices.Utility;
89
using Newtonsoft.Json;
910
using Newtonsoft.Json.Linq;
1011
using System;
1112

12-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Message
13+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1314
{
1415
public class MessageParser
1516
{

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/MessageType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Message
6+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
77
{
88
/// <summary>
99
/// Indentifies the type of a given message.

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/NextRequest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using Nito.AsyncEx;
98
using System.Threading.Tasks;
109

11-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
10+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1211
{
1312
// /** StepOver request; value of command field is "next".
1413
// he request starts the debuggee to run again for one step.

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/NextResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77

8-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
99
{
1010
[MessageTypeName("next")]
1111
public class NextResponse : ResponseBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/OutputEvent.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using System;
8-
using System.Collections.Generic;
9-
using System.Linq;
10-
using System.Text;
11-
using System.Threading.Tasks;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
127

13-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Event
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
149
{
1510
[MessageTypeName("output")]
1611
public class OutputEvent : EventBase<OutputEventBody>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/PauseRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
77
using Nito.AsyncEx;
88
using System.Threading.Tasks;
99

10-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
10+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1111
{
1212
[MessageTypeName("pause")]
1313
public class PauseRequest : RequestBase<object>

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/RequestBase.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
7-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Response;
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
87
using System.Threading.Tasks;
98

10-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Request
9+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1110
{
1211
public abstract class RequestBase<TArgs> : MessageBase, IMessageProcessor
1312
{

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/ResponseBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
44
//
55

6-
using Microsoft.PowerShell.EditorServices.Transport.Stdio.Message;
76
using Newtonsoft.Json;
87

9-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Response
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
109
{
1110
public abstract class ResponseBase<TBody> : MessageBase
1211
{

src/PowerShellEditorServices.Transport.Stdio/DebugAdapter/Scope.cs

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

12-
namespace Microsoft.PowerShell.EditorServices.Transport.Stdio.Model
12+
namespace Microsoft.PowerShell.EditorServices.Protocol.DebugAdapter
1313
{
1414
public class Scope
1515
{

0 commit comments

Comments
 (0)