Skip to content

Commit 202a3d0

Browse files
author
N. Taylor Mullen
committed
Make existing request response types fully public
- For consumers who are creating their own `RequestInvoker` they need to manually construct many of our response types. Therefore, the constructors need to also be puclic.
1 parent b4e8140 commit 202a3d0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/JsonRpc/ContentModified.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using OmniSharp.Extensions.JsonRpc.Server;
1+
using OmniSharp.Extensions.JsonRpc.Server;
22
using OmniSharp.Extensions.JsonRpc.Server.Messages;
33

44
namespace OmniSharp.Extensions.JsonRpc
55
{
66
public class ContentModified : RpcError
77
{
8-
internal ContentModified(string method) : base(null, method, new ErrorMessage(ErrorCodes.ContentModified, "Content Modified"))
8+
public ContentModified(string method) : base(null, method, new ErrorMessage(ErrorCodes.ContentModified, "Content Modified"))
99
{
1010
}
1111

12-
internal ContentModified(object id, string method) : base(id, method, new ErrorMessage(ErrorCodes.ContentModified, "Content Modified"))
12+
public ContentModified(object id, string method) : base(id, method, new ErrorMessage(ErrorCodes.ContentModified, "Content Modified"))
1313
{
1414
}
1515
}

src/JsonRpc/RequestCancelled.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using OmniSharp.Extensions.JsonRpc.Server;
1+
using OmniSharp.Extensions.JsonRpc.Server;
22
using OmniSharp.Extensions.JsonRpc.Server.Messages;
33

44
namespace OmniSharp.Extensions.JsonRpc
55
{
66
public class RequestCancelled : RpcError
77
{
8-
internal RequestCancelled(string method) : base(null, method, new ErrorMessage(ErrorCodes.RequestCancelled, "Request Cancelled"))
8+
public RequestCancelled(string method) : base(null, method, new ErrorMessage(ErrorCodes.RequestCancelled, "Request Cancelled"))
99
{
1010
}
1111

12-
internal RequestCancelled(object id, string method) : base(id, method, new ErrorMessage(ErrorCodes.RequestCancelled, "Request Cancelled"))
12+
public RequestCancelled(object id, string method) : base(id, method, new ErrorMessage(ErrorCodes.RequestCancelled, "Request Cancelled"))
1313
{
1414
}
1515
}

src/JsonRpc/TimeLoggerExtensions.cs

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

66
namespace OmniSharp.Extensions.JsonRpc
77
{
8-
internal static class TimeLoggerExtensions
8+
public static class TimeLoggerExtensions
99
{
1010
private class Disposable : IDisposable
1111
{

0 commit comments

Comments
 (0)